Professional Documents
Culture Documents
Student Reg
Student Reg
Scanner;
char choice;
int count;
do{
count = input2.nextInt();
String[]studentName1=new String[count];
int[]studentAge1=new int[count];
String[]studentGender1=new String[count];
String[]studentAddress1=new String[count];
System.out.println("Profile "+(i+1));
System.out.print("");
System.out.print("Student Name:");
studentName1[i]=input1.next();
System.out.print("Student Number:");
Scanner b = new Scanner(System.in);
studentNumber1[i]=input2.nextInt();
System.out.print("Age:");
studentAge1[i]=input2.nextInt();
System.out.print("Gender:");
studentGender1[i]=input2.next();
System.out.print("Address:");
studentAddress1[i]=input4.nextLine();
System.out.println(" ");
System.out.println("");
System.out.println("Profile "+(i+1));
System.out.println("");
if (count==1){
System.out.println("You have successfully registered ("+count+") student.");
}else if (count>1){
choice = input3.nextLine().charAt(0);
}while(choice=='Y');
if(choice=='N'){