Java problem!!!!
Quote:Original post by Aldacron
Look, printf prints to standard out. System.out.println prints to standard out. Therefore, they are equivalent.
There final outcome may be the same but they are not equivalent perhaps you don't understand printf because println & printf are not same, printf does formatted out-put with a format string.
Quote:Original post by Aldacron
The new method in 1.5 is the same, but takes advantage of the variable args support added to the language.
like i said before there not the same, printf does formatting and can take advantage of locales, println doesn't do anything like that.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement