I got a problem with my exericese of Head First Java.
My code is :
It compiles fine, but won't output.
The error message is:
Exception in thread "main" java.lang.NoSuchMethodError: method java.lang.String.format with signature (Ljava.lang.String;[Ljava.lang.Object;) Ljava.lang.String; was not found. at FullMoons.main(FullMoons.java:14)
My operating system is Ubontu Linux, and java version is 5.
Please help me with it.
Edit by mw: Added Code Tags and disabled smilies. [ July 09, 2007: Message edited by: marc weber ]