Guest User

Untitled

a guest
Jan 20th, 2013
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. public class DJName
  2. {        
  3.     public static void main(String[] args)
  4.     {
  5.         Scanner scan = new Scanner(System.in);
  6.         System.out.println("What is your first Name?");
  7.         String firstName = scan.nextLine();
  8.         String firstNamePrint = String.substring(0, firstName.length() / 2);
  9.         System.out.println("What is your last Name?");
  10.         String lastName = scan.nextLine();
  11.         String lastNamePrint = lastName.substring(lastName.length() / 2, lastName.length());
  12.         System.out.println("Your DJ Name is: " + firstNamePrint + lastNamePrint + "izzle");
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment