Advertisement
mrScarlett

year 10 array 1

Dec 13th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class Arrays
  2. {
  3. public static void main (String args[]){
  4. String [] subject = {"Maths","Computer Science", "History", "Chemistry"};
  5. int [] paper1Score = {90,91,67,55};
  6. int [] paper2Score = {3,1,57,32};
  7.  
  8. for (int x=0; x<4;x++){
  9. System.out.println(subject[x]+": Paper 1 Score: "+paper1Score[x]+" Paper 2 Score: "+paper1Score[x]);
  10. }
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement