No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Here is my code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String[] name= new String[10]; int[] mark=new int[10]; int n=0; System.out.print("#Number of students: "); try{ BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(bufferRead.readLine()); } catch(IOException e) { e.printStackTrace(); } for(int … |
|
Ok basically i have the expected output. I have tried part of the code however i am confused as to how i am meant to input the students name and their module mark. Example Input: Commentary: A N Other The Students name 50 Their module mark B N Other The … |