Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class chaty{
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- System.out.println("Hello i'm cortana whats you're name?");
- String naam = scan.nextLine();
- if (naam.equalsIgnoreCase("erwin")) {
- System.out.println("Hello erwin i heard that you are a gamedevelopment teacher");
- }
- else if (naam.equalsIgnoreCase("joey")) {
- System.out.println("Hello i heard that you have really nice hair " + naam );
- }
- else {
- System.out.println("Hello " + naam + "!!");
- }
- else if (naam.equalsIgnoreCase("Joey Schmitz")) {
- System.out.println("Hello i heard that you have really nice hair " + naam );
- }
- else if (naam.equalsIgnoreCase("erwin henraat")) {
- System.out.println("Hello erwin i heard that you are a gamedevelopment teacher");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("Are you a man or a woman?");
- String input = scan.nextLine();
- if (input.equalsIgnoreCase("man")) {
- System.out.println("So i can call you Mr." + naam + "!");
- }
- else if (input.equalsIgnoreCase("woman")) {
- System.out.println("So i can call you Mrs." + naam + "!");
- }
- else {
- System.out.println("make sure you write it right " + naam);
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("Where do you live " + naam + "?");
- String input2 = scan.nextLine();
- if (input2.equalsIgnoreCase("amsterdam")) {
- System.out.println("Ooh thats cool my creator created me in Amsterdam");
- }
- if else {
- System.out.println("thats a cool place to live!!");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("i'm programmed in java by my creator (Dimitri van Manen) but if you had to choose between html,java or css what would be you're favorite language?");
- String input3 = scan.nextLine();
- if (input3.equalsIgnoreCase("java")) {
- System.out.println("i knew i liked you " + naam + " java is the best!!! ");
- }
- else {
- System.out.println("Thats a nice language but i prefer java myself");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("Whats you're favorite type of breakfast " + naam + "?");
- String input6 = scan.nextLine();
- if (input6.equalsIgnoreCase("bacon")) {
- System.out.println("Ooh i love bacon i wish i could mary bacon!!");
- }
- else {
- System.out.println("Ooh thats nice but i myself prefer bacon if i could eat ");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("I never asked how old you are " + naam + "?");
- int input7 = scan.nextInt();
- if (input7 >= 18) {
- System.out.println("Ooh so you are older then me i'm only 3 but i'm really smart for my age probaly beqause i'm an AI");
- }
- else if (input7 < 18 ) {
- System.out.println("Ooh you're still young just like me i'm only 3 years old");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- System.out.println("well i have no more questions left did you like to talk to me?");
- String input8 = scan.nextLine();
- String input9 = scan.nextLine();
- if (input8.equalsIgnoreCase("yes")) {
- System.out.println("yay i like to hear that goodbye " + naam );
- }
- else if (input9.equalsIgnoreCase("no")) {
- System.out.println("Ooh thats too bad well nice for being honest........dick!! ");
- }
- else {
- System.out.println("Thx for that awnser " + naam + " and bye");
- }
- try{Thread.sleep(1000);}catch(InterruptedException e){}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement