JAVA PROGRAMMING
Write the Java statement for the following: (Statements must be properly terminated)
1. Declare x,y and z to be variables of type int with values 5,10 and 15 respectively
2. Store the result of the comparison between x and y to z. Use the comparison operator
3. Store the sum of x and y to variable sum
4. Display the value of x,y and z using only one print or println statement in this method : The sum of 5 and 10 is 15
5. Declare isBoolean to have an initial value of “true”
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here