The + operator for String's
Appends one String to another and
converts numerical values into a decimal representation
•class NewRoot { // to
compute the square root of the first argument
• public static void main (String[]
arguments) {
• if (arguments.length >
0)
• { int number = 0;
• number =
Integer.parseInt(arguments[0]);
•
System.out.println("The Square root of "
• + number
• + " is "
• + Math.sqrt(number));
• }
• else System.out.println("use: 'java NewRoot
[argument]'");
• }
•}