Hello everyone,
this is my code (Ok, it isn't my code, I got it from a friend):
If I want to compile I get the error:
multi-catch Statement is not supported in-source 1.6
(use-source 7 or higher to enable multi-catch Statement)
in the catch line.
I reinstalled Java and Greenfoot I have still this error. What's wrong?
public static Object deserialize(String filename) {
Object objekt = null;
try {
FileInputStream file = new FileInputStream(filename);
ObjectInputStream o = new ObjectInputStream(file);
objekt = o.readObject();
o.close();
}
catch (IOException | ClassNotFoundException e) { System.out.println(e); }
return objekt;
}

