import java.util.*; import java.io.*; import java.net.*; public class PlanetenLader { public static Planet[] ladePlaneten(){ Properties props = new Properties(); try { URL url = PlanetenLader.class.getClassLoader().getResource("Planeten.properties"); File file = new File (url.getPath()); FileInputStream inStream = new FileInputStream(file); props.load(inStream); } catch (FileNotFoundException fnfE) { fnfE.printStackTrace(); } catch (IOException ioE) { ioE.printStackTrace(); } String[] propsNamen = {"merkur", "venus", "erde", "mars", "jupiter", "saturn", "uranus", "neptun", "pluto" }; Planet[] planeten = new Planet[9]; for (int i=0; i