Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get method for int Array
- public String getScore() {
- String i = "";
- for (int scoresIndex =0; scoresIndex< scores.length; scoresIndex++)
- i += scores[scoresIndex]+" ";
- return i;
- }
- public int [] getScores() {
- ////_____////
- }
- public int[] getScores() { return scores; }
- public int[] getScores() { return scores.clone(); }
- public int[] getScores(){ return scores ;}
- public int[] getScores()
- {
- // any other code
- return scores;
- }
Add Comment
Please, Sign In to add comment