Question: ( 2 5 points ) No Problem - Solving Required. LabHomework 9 has one GUI requirement. Using the example given of the addition of two
points No ProblemSolving Required. LabHomework has one GUI requirement. Using the example given of the addition of two numbers see below I would like each student to do a problem from earlier in the semester where we used the Scanner class but replace the Scanner input with the JOptionPane. import java.util.Scanner;
public class EvenorOdd
@param args the command line arguments
public static void mainString args
Scanner input new ScannerSystemin; TODO code application logic here
int EoOnumber;
System.out.printPlease Enter a positive integer: ;
EoOnumber input.nextInt;
if EoOnumber
System.out.printlnThe number EoOnumber is even.";
else
System.out.printlnThe number EoOnumber is odd.";
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
