I know I know!!!! Its my fat juicy coc that you gotta slurp to get the answer.
Chat with our AI personalities
credit
int find(String str, double d);
The round method of the Math class is overloaded. You can either pass a double or a long into the round method
Method overloading is when two or more methods have the same name, but the computer can differentiate between the methods by looking at the parameters. Example: public static void go(int x) public static void go(double x) If you pass an int, the first method would be called. If you pass a double, the second method would be called
double root = Math.sqrt(XXXXX); where XXXXX is the number for which you want to calculate the square root.