Hi everyone,
What im trying to do is add a list of scores to a object called member, only adding one score to the obect at a time, then i need to get the list, sum the values of the list, - 72*the length of the list, im having trouble with adding a list to the member object and hoping someone can help
String strscore = AppTools.getUserInput(AppConstants.Get_course_score); //strmemscoreno = Integer.toString(memArrScore.size() + 1); //int[] strscore = new int[(AppConstants.MAX_SCORES_FIVE)]; //int s = 1 + strscore.size(); //String strMemberId = AppTools.getUserInput(AppConstants.GET_MEMBER_ID); int score = Integer.parseInt(strscore); int handicap = score - (AppConstants.Get_Handicap); if (handicap < 0){ handicap = 0; } System.out.println("Your handicap is " + handicap); counter++; public int getlistScore() { return IntScore; } public void setlistScore(int IntScore) { this.IntScore = IntScore; }