butler.ra...@gmail.com wrote:
Sub: Re: MAC and system.out.printf ??????
Note that Mac. is not an acronym (so not all-caps)
and please fix that sticky '?' key. One question
mark is enough.
Why do I get a compiler error when I use the following
Because you have no idea what you are doing?
I would normally ask the poster to note the *exact*
error output that the compiler produces, but this one
is too obvious to need that.
system.out.printf("%d", number);
D:\Test.java:4: package system does not exist
system.out.printf("%d", number);
^
1 error
That output was from a *Win.* based machine.
does printf work on the mac?
Sure, you just need use the correct nomenclature
to refer to the System class, so that would be..
System.out.printf("%d", number);
--
Andrew Thompsonhttp://www.athompson.info/andrew/
Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1