Okay so here's my constructor
public class Highscore implements java.io.Serializable{
public String name;
public double score;
protected Highscore (String na, double sc){
name = na;
score = sc;
}
public String getName(){
return name;
}
public double getScore(){
return score;
}
public String toString(){
return name + "has "+score+" points.";
}
}
Creating the object in my main class:
Highscore ny = new Highscore (na, sc);
allaHighscore.add(ny);
Then i want to save this object to be able to load them at a later point, this is for a highscore list for a game btw
How do I proceed?