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

Recommended Answers

All 2 Replies

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.

and use code tags and proper naming conventions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.