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
Jump to Post
check the explanation on the printf methods.
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.