Can someone help me on these java array questions plz?
Break you question into parts ( I’ll give the pseudo code but not the java code, so you can go through it and learn from it ) 1) Write Asking question to the screen System.out.println(“How many students in a class?”); //Then read input //Then you can loop through asking each number or //request all at once you decide ex: //classnumber holds the input value received //make sure classnumber is not <=0 && > 25 if ( classnumber > 0 && classnumber <= 25 ) for ( int i = 0; i < classnumber; i++ ) { System.out.println("Enter Grade?"); //read grade and store in array[i] at this point } //make another loop to calculate the average //basic math: Add all and final number divide by classnumber and store value for later //make one more loop to display the grades and average 2) //Fill you array //you'll need two loops one for the outter and one for the inner loop for ( int i = 0; i < arraysizeA; i++) for ( int j = 0; j < arraysizeB; j++ ) { if ( array[i] = array[j] ) //store value in another array }