I’ve been asked to enter the following example into Eclipse
Paste the following snippet of code into a Java application using Eclipse. There may be some errors in the code that you’ll need to correct <== errors???
Properties p = System.getProperties();
Enumeration<Object> keys = p.keys();
while (keys.hasMoreElements()) {
String key = (String)keys.nextElement();
String value = (String)p.get(key);
System.out.println(key + ": " + value);
}
But Eclipse is giving me errors.
Also What’s the difference between Eclipse Classic and Java EE.
This is just a code fragment, you need to build some extra class “infrastructure” around it, and a function.
To see what I mean by “infrastructure” have a look at your previous Java question ( Having trouble creating a new object from a class in Eclipse )
Regarding Eclipse, Eclipse is a modular editor and the several editions are bundles of the basic editor and a set of modules geared specifically to the development in a certain environment. The Java EE Edition comes with pre-integrated modules for typical tasks and APIs in Java Enterprise Edition, like JPA (persistence), JSF (presentation), enterprise project packaging and so on. A complete list (for Indigo) can he consulted here.