User Tools

Site Tools


java:formatting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
java:formatting [2020/03/09 21:22]
gthanos [Μορφοποίηση Εξόδου]
java:formatting [2020/03/09 21:25]
gthanos
Line 77: Line 77:
 public class MyFormat { public class MyFormat {
     public static void main(String[] args) {     public static void main(String[] args) {
-        System.out.format("%f, %1$+020.10f %n", Math.PI);+        System.out.format("%f, 020.10f %n", Math.PI);
     }     }
 } }
java/formatting.txt · Last modified: 2021/05/14 15:09 (external edit)