Question: answer in java 1. The following code works fine (as long as the user enters valid integers). However, the code is not exactly up to

1. The following code works fine (as long as the user enters valid integers). However, the code is not exactly up to our Java standards. Indicate what needs to change so that it follows the standards we discussed tonight. import java.util.Scanner; public class Test public static void main(Stringti args) { Scanner Input - new Scanner(System.in); System.out.println("Please enter a pair of integers and I'll add them!"); int VALL - Input.nextInt() int val2 - Input.nextInt (); int Bum - VALL + val2: System.out.println("The sum 15" + sum +.") 3 2. Write up some code that allows the user to enter three numbers. Multiply the first two and store that result in another variable. Take that value and subtract the third value, storing that value in another variable. Finally, print the contents of that variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
