Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Arrays
- {
- public static void main (String args[]){
- String [] subject = {"Maths","Computer Science", "History", "Chemistry"};
- int [] paper1Score = {90,91,67,55};
- int [] paper2Score = {3,1,57,32};
- for (int x=0; x<4;x++){
- System.out.println(subject[x]+": Paper 1 Score: "+paper1Score[x]+" Paper 2 Score: "+paper1Score[x]);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment