HI all, I have just come across this:System.out.printf("Student %2d: %3d\n");
What does that ":" mean? I assume it is a kind of separator becasue that line prints something like this:Student 1: 87
thanks
Violet_82 89 Posting Whiz in Training
Recommended Answers
Jump to Posthttp://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html
check the explanation on the printf methods.
All 3 Replies
stultuske 1,116 Posting Maven Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Violet_82 89 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.