Complete the following StudentIdDriver class skeleton by replacing all six occurrences of <insert-code-here> with your own code such that the program operates properly. For details, read the comments above or next to the <insert-code-here> insertions. Note the StudentId class, which is below the StudentIdDriver class. The two classes are in separate files.
import java.util.Scanner;public class StudentIdDriver{public static void main(String[] args){Scanner stdIn = new Scanner(System.in);StudentId student;String name;// Instantiate StudentId object and assign it to student.System.out.print("Enter student name: ");name = stdIn.nextLine();// Assign name to the student object.System.out.print("Enter student id: ");// In a single line, read an int for the id value,// and assign it to the student object.// If invalid id, execute the loop.// (Use the isValid method in the while loop condition.)while (){System.out.print("Invalid student id - reenter: ");// In a single line, read an int for the id value// and assign it to the student object.}System.out.println("\n" + name +", your new e-mail account is: \n" += 100000 && this.id <= 999999;}} // end class StudentId
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.