Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.     public void printColumnHeadings() {
  2.         System.out.println();
  3.         for (int i = 0; i < 196; i++)
  4.             System.out.print("-");
  5.         System.out.println();  
  6.        
  7.         System.out.format("%4s. %6s %-12s %-12s %-40s %-25s %-12s %-15s %-40s %-12s %7s",
  8.                             "#.", ID, first, last, street, city, postal, phone, email, date, "10");
  9.        
  10.         System.out.println();
  11.         for (int j = 0; j < 196; j++)
  12.             System.out.print("-");
  13.        
  14.    
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement