Search:

Type: Posts; User: shu

Search: Search took 0.26 seconds.

  1. Replies
    12
    Views
    1,255

    Re: how to do dynamic casting for all datatypes

    i tried that with same name and different args what happened is for add method i have to create different data types args and next for sub i have to create different args with sub method name so its...
  2. Replies
    12
    Views
    1,255

    Re: how to do dynamic casting for all datatypes

    i just want when i call the parameters with different datatypes in that particular method want to do that particular type of operation m just a beginner of java so dont know how to do that currently...
  3. Replies
    12
    Views
    1,255

    Re: how to do dynamic casting for all datatypes

    oki i will try this thank you
  4. Replies
    12
    Views
    1,255

    Re: how to do dynamic casting for all datatypes

    no i posted one prog above in that if i called obj.add(anydatatype variable,anydatatype variable) i want to do that operation in that method like if i calle obj.add(2.0,3.0) i want answere in float...
  5. Replies
    12
    Views
    1,255

    Re: how to do dynamic casting for all datatypes

    no i want in main method if i send any other datatypes ex:obj(2.0,3.0) i want it convert in the method as generic if i want to put any type of data type parameters when i called t have to convert to...
  6. Replies
    12
    Views
    1,255

    how to do dynamic casting for all datatypes

    ublic class MethodsExample {

    public void add(int a, int b) {
    int add = a + b;
    System.out.println("Addtion value=" + add);
    }

    public void sub(int a, int b) {
    int sub = a - b;...
Results 1 to 6 of 6