Guest User

Untitled

a guest
Aug 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Get method for int Array
  2. public String getScore() {
  3. String i = "";
  4.  
  5. for (int scoresIndex =0; scoresIndex< scores.length; scoresIndex++)
  6. i += scores[scoresIndex]+" ";
  7.  
  8. return i;
  9. }
  10.  
  11.  
  12. public int [] getScores() {
  13. ////_____////
  14. }
  15.  
  16. public int[] getScores() { return scores; }
  17.  
  18. public int[] getScores() { return scores.clone(); }
  19.  
  20. public int[] getScores(){ return scores ;}
  21.  
  22. public int[] getScores()
  23. {
  24. // any other code
  25. return scores;
  26. }
Add Comment
Please, Sign In to add comment