java - Calling Methods with same name -
i have 3 methods, same name.
//method 1 public double x(string x){ } //method 2 public double x(double x){ } //method 3 public double x(double x){ }
i have code in method 1 , want phone call method 3.
now having x(new double(variable));
in method 1 passes variable method 2. correct. want same method 3 (take variable method 1 , pass method 3). how this?
the method executed defined parameter you're calling with.
simply cast or parse values.
java
No comments:
Post a Comment