Hello all this is one that yes is home work but I really have no clue what to do with it. please can someone help.

23. What is the output generated by this code fragment?
System.out.printf("%4.1f\n", 8.);
System.out.printf("%,.1f\n", 1234.567);

Member Avatar for ztini

This is an easy one...plug it into a java file, compile, and see what the output is. :)

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.