Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package printf;
- /**
- *
- * @author Monty
- */
- public class Printf {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- System.out.printf("%8d%8s%8.1f\n", 775, "Java", 45.4, args);
- System.out.printf("%-8d%-8s%-8.1f\n", 577, "HTML", 67.2, args);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment