Changeset 219 in Java_Quellcode_SOOP_Vorlesung


Ignore:
Timestamp:
Oct 17, 2016, 3:18:11 PM (8 years ago)
Author:
tr
Message:

printf Beispiel erweitert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • einfuehrung/Stringausgabe.java

    r218 r219  
    3333        // %s String, negative Zahl: linksbündig
    3434        // %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);
    3737       
    3838        System.out.println();
Note: See TracChangeset for help on using the changeset viewer.