Question: Explain the code below #will rate highly need asap import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new
Explain the code below #will rate highly need asap import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); Process process = new Process(); // create instance of Process class Customer customer = null; String id; String name; String stall; String product; String lot; int role; while(true){ System.out.println("Enter Role: 1. Admin 2. User"); role = scan.nextInt(); scan.nextLine(); if(role == 1){ System.out.println("Enter username :"); String username = scan.nextLine(); System.out.println("Enter password :"); String password = scan.nextLine(); if(username.equals("admin") && password.equals("1234")) { while (true) { ArrayList 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
