public class NewRoot {
public static void main(String[] arguments){
int number = arguments[0];
System.out.println("The square root of"
+ number
+ " is "
+ Math.sqrt(number)
);
}
}
eclipse shows an error saying
Type mismatch: cannot convert from String to int
even though I put 225 on an argument. What's wrong with my code?