0
package jetman;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
//import java.util.Arrays.sort();


public class scoreList {
    String filePath = "Score.txt";
    private ArrayList<Score> scoreArrayList = new ArrayList<Score>();



    /** Creates a new instance of scoreList */
    public scoreList() {
        FileWriter writer = null;
        try {
          writer = new FileWriter("Scores.txt");
        } catch (IOException ex) {
            ex.printStackTrace();
        }
       PrintWriter out = new PrintWriter(writer); 
       out.println(this);

       out.println(10.55);   
    }

    public static void sort(double[] a,   // Missing Body or declare abstract. 
            int fromIndex
            int toIndex);

    public ArrayList<Score> getScoreArrayList() {
        return scoreArrayList;
    }

    public void setScoreArrayList(ArrayList<Score> scoreArrayList) {
        this.scoreArrayList = scoreArrayList;

    }

    public void removeScoreArrayList (Score s) {
        scoreArrayList.remove(s);
        this.scoreArrayList = scoreArrayList;
    }


      private Score add(Score s) {
         scoreArrayList.add(s);
         return s;
      }


}

what do i need to do

Edited by Dani: Formatting fixed

3
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by jwenting
0

Read the error messages you get when you compile and try to fix them.

Provide us with those error message, and we might help you, but we are not going to guess at what the errors might be.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.