Advertisement
xgeovanni

ChatBot

Jan 27th, 2012
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. public class chatbot
  4. {
  5.    public static void main(String[] args){
  6.        Scanner input = new Scanner(System.in);
  7.        System.out.println("What is your name? ");
  8.        String name = input.nextLine();
  9.        
  10.        System.out.println("\nHello " + name + " how old are you?");
  11.        String age = input.nextLine();
  12.        
  13.        System.out.println("\nSo, you're " + name + " who is " + age + " years old\n");
  14.        
  15.        for (int i = 0; i < 10; i++){ //10 times
  16.            System.out.println("U R GAY!");
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement