Advertisement
cgorrillaha

Lab1Names

Sep 4th, 2020
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. class Main {
  2.   public static void main(String[] args) {
  3.     //String literal = anything between double quotes "this is a literal"
  4.     /*
  5.     Names lab starts here
  6.     */
  7.     System.out.println ();
  8.       System.out.println ("\tName\t\tHometown\tMajor");
  9.       System.out.println ("\t====\t\t========\t=====");
  10.       System.out.println ("\tSally\t\tRoanoke\t\tCSci");
  11.       System.out.println ("\tAlexander\tWashington\tHistory");
  12.       System.out.println ("\tSarah\t\tMinneapolis\tGraphic Design");
  13.     System.out.println ("\tRasheem\t\tSt. Paul\tSoftware");
  14.     System.out.println ("\\");
  15.  
  16.     /*
  17.     Student Grades starts here
  18.     */
  19.  
  20.     // \" - prints out double quotes
  21.     // \\ - prints out \
  22.  
  23.     System.out.println ("///////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
  24.   }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement