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 3 Years Ago by Dani: Formatting fixed

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 article has been dead for over six months. Start a new discussion instead.