Jim Jonides wrote:How did you get that errors? Can you fix problems that Mohamed mentioned and let us know if you are still getting the same errors?
I refined the code: I still get a warning kinda but the program compiles: here is the code:
ERROR:Exception in
thread "main" java.lang.Error: Unresolved compilation problem:
Cannot make a static reference to the non-static method y() from the type MystaticEx2
at MystaticEx2.main(MystaticEx2.java:24)