Question: java please 1. The following code works fine (as long as the user enters valid integers). However, the code is not exactly up to our
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. Rewrite this code so that it follows the standards we discussed tonight import java.util.Scanner: public class Test public static void main(String[] args) { Scanner Input - new Scanner(System.in); System.out.println("Please enter a pair of integers and I'11 add them!"); int VALI Input.nextInt(); int val2 - Input.nextInt(); int num-VALL + Val2: System.out.println("The sum 36" + m.) 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
