I have a class define as follow
public class EvaluationResult implements java.io.Serializable {
public String ClassName;
public boolean FeedbackDirected;
public double HV;
public double Spread;
public double PercentageOfCorrectness;
public double TimeElapsed;
public ArrayList<double[]> ParetoFront;
}
Doing this
public static void main(String[] args) throws Exception {
EvaluationResult ae=new EvaluationResult();
FileOutputStream fileOut =new FileOutputStream("result.txt");
ObjectOutputStream out = new ObjectOutputStream(fileOut);
out.writeObject(fileOut);
out.close();
fileOut.close();
}
gives me java.io.NotSerializableException
what is the problem?