Changeset 219 in Java_Quellcode_SOOP_Vorlesung
- Timestamp:
- Oct 17, 2016, 3:18:11 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
einfuehrung/Stringausgabe.java
r218 r219 33 33 // %s String, negative Zahl: linksbündig 34 34 // %c char 35 System.out.printf("%-10s %7.2f%8d\n", "Meier", 34.5668, 22);36 System.out.printf("%-10s %7.2f%8d\n", "May", 0.007, 42);35 System.out.printf("%-10s Betrag: %7.2f ID: %4d\n", "Meier", 34.5668, 22); 36 System.out.printf("%-10s Betrag: %7.2f ID: %4d\n", "May", 0.007, 42); 37 37 38 38 System.out.println();
Note: See TracChangeset
for help on using the changeset viewer.