Java printf

Joined
Mar 6, 2007
Messages
6
Reaction score
0
Points
1
when I use system.out.printf("%d", number);

i get symbol not found error during compiling

any help would be great

Thanks
 
OP
M
Joined
Mar 6, 2007
Messages
6
Reaction score
0
Points
1
So the option printf is not available in xcode 2.4.1? because I ran the same method in netbeans ide and it worked fine. I'm a bit confused why xcode don't like the format option?:blind:
 
Joined
Mar 16, 2007
Messages
756
Reaction score
14
Points
18
haven't done a lot with xcode, but there is nothing like that in java... juco showed how it works :D
 
Joined
May 14, 2006
Messages
88
Reaction score
0
Points
6
Your Mac's Specs
G4 iBook
Whether you write your Java in XCode, any IDE or any text editor, the syntax will always be the same.

printf is a C statement :black:
 
Joined
May 14, 2006
Messages
88
Reaction score
0
Points
6
Your Mac's Specs
G4 iBook
Yeh, that's to print to a stream. So I guess if he was writing to a file, that'd be handy.
 
OP
M
Joined
Mar 6, 2007
Messages
6
Reaction score
0
Points
1
Right it is. So is there something wrong with xcode not accepting System.out.printf()?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top