Can somebody please help me with printf? I am trying to format the following:
System.out.printf("t = "+ time + " X: " + x + " Y: "+ y );
I want to show only 3 decimal points. I tried adding %5.3f%n and changing the plus signs to commas, but that only shows the time and stops. How do I show formatted string, formatted float, formatted string, formatted float?
Thanks