Search:

Type: Posts; User: shu

Search: Search took 0.38 seconds.

  1. Replies
    12
    Views
    260

    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
    260

    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
    260

    Re: how to do dynamic casting for all datatypes

    oki i will try this thank you
  4. Replies
    12
    Views
    260

    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
    260

    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
    260

    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;...
  7. Thread: guide

    by shu
    Replies
    2
    Views
    200

    Re: guide

    thank u :)
  8. Thread: guide

    by shu
    Replies
    2
    Views
    200

    guide

    public class Main {
    public static void main(String[] args) {
    String s1 = "H";
    int num = 3110;
    String s2 = s1+num;
    int n = 0;
    String s3 = "w"+n+"rld";...
Results 1 to 8 of 8