Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 23rd, 2012  |  syntax: None  |  size: 0.82 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. import java.io.*;
  2. import java.util.Scanner;
  3.  
  4. class bookingClient {
  5.  
  6.     public static void main(String [] args){
  7.  
  8.  
  9.        
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.     System.out.println("Enter Name:");
  19.  
  20.         Scanner readName = new Scanner(System.in);
  21.  
  22.         System.out.println(readName.nextLine() + "Name added");
  23.  
  24.        
  25.  
  26.     System.out.println("Enter Date of Birth:");
  27.  
  28.         Scanner readDob = new Scanner(System.in);
  29.        
  30.         System.out.println(readDob.nextLine() + "Date of Birth added");
  31.  
  32.        
  33.  
  34.     System.out.println("Enter Ticket type:");
  35.  
  36.         Scanner readTicket = new Scanner(System.in);
  37.  
  38.         System.out.println(readTicket.nextLine() + "Ticket type added");
  39.  
  40.        
  41.  
  42.     System.out.println("Enter Ticket Date:");
  43.  
  44.         Scanner readTD = new Scanner(System.in);
  45.  
  46.         System.out.println(readTD.nextLine() + "Ticket Date added");
  47.  
  48. }
  49.  
  50.  
  51.  
  52. }