Advertisement
Monty374

Letter

Sep 12th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. package letter;
  2.  
  3. /**
  4. *
  5. * @author Monty
  6. */
  7. public class Letter {
  8.  
  9. /**
  10. * @param args the command line arguments
  11. */
  12. public static void main(String[] args) {
  13. System.out.printf("%50s\n", "+------------------------------------------------+", args);
  14. System.out.printf("%-6s%10s\n", "|\t\t\t\t\t", "#### |", args);
  15. System.out.printf("%-6s%10s\n", "|\t\t\t\t\t", "#### |", args);
  16. System.out.printf("%-6s%10s\n", "|\t\t\t\t\t", "#### |", args);
  17. System.out.printf("%-6s\n", "|\t\t\t\t\t\t |", args);
  18. System.out.printf("%-6s\n", "|\t\t\t\t\t\t |", args);
  19. System.out.printf("%-6s%18s\n", "|\t\t\t", "Named Person\t |", args);
  20. System.out.printf("%-6s%18s\n", "|\t\t\t", "5 Street Dr.\t |", args);
  21. System.out.printf("%-6s%18s\n", "|\t\t\t", "Town ST 87655\t |", args);
  22. System.out.printf("%-6s\n", "|\t\t\t\t\t\t |", args);
  23. System.out.printf("%50s\n", "+------------------------------------------------+", args);
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement