Advertisement
Guest User

chatty

a guest
Oct 18th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.80 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class chaty{
  3. public static void main(String[] args) {
  4.  
  5. Scanner scan = new Scanner(System.in);
  6.  
  7. System.out.println("Hello i'm cortana whats you're name?");
  8. String naam = scan.nextLine();
  9. if (naam.equalsIgnoreCase("erwin")) {
  10. System.out.println("Hello erwin i heard that you are a gamedevelopment teacher");
  11. }
  12. else if (naam.equalsIgnoreCase("joey")) {
  13. System.out.println("Hello i heard that you have really nice hair " + naam );
  14. }
  15. else {
  16. System.out.println("Hello " + naam + "!!");
  17. }
  18. else if (naam.equalsIgnoreCase("Joey Schmitz")) {
  19. System.out.println("Hello i heard that you have really nice hair " + naam );
  20. }
  21. else if (naam.equalsIgnoreCase("erwin henraat")) {
  22. System.out.println("Hello erwin i heard that you are a gamedevelopment teacher");
  23. }
  24.  
  25. try{Thread.sleep(1000);}catch(InterruptedException e){}
  26.  
  27. System.out.println("Are you a man or a woman?");
  28. String input = scan.nextLine();
  29. if (input.equalsIgnoreCase("man")) {
  30. System.out.println("So i can call you Mr." + naam + "!");
  31. }
  32. else if (input.equalsIgnoreCase("woman")) {
  33. System.out.println("So i can call you Mrs." + naam + "!");
  34. }
  35. else {
  36. System.out.println("make sure you write it right " + naam);
  37. }
  38.  
  39. try{Thread.sleep(1000);}catch(InterruptedException e){}
  40.  
  41. System.out.println("Where do you live " + naam + "?");
  42. String input2 = scan.nextLine();
  43. if (input2.equalsIgnoreCase("amsterdam")) {
  44. System.out.println("Ooh thats cool my creator created me in Amsterdam");
  45. }
  46. if else {
  47. System.out.println("thats a cool place to live!!");
  48. }
  49.  
  50. try{Thread.sleep(1000);}catch(InterruptedException e){}
  51.  
  52. 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?");
  53. String input3 = scan.nextLine();
  54. if (input3.equalsIgnoreCase("java")) {
  55. System.out.println("i knew i liked you " + naam + " java is the best!!! ");
  56. }
  57. else {
  58. System.out.println("Thats a nice language but i prefer java myself");
  59. }
  60.  
  61. try{Thread.sleep(1000);}catch(InterruptedException e){}
  62.  
  63. System.out.println("Whats you're favorite type of breakfast " + naam + "?");
  64. String input6 = scan.nextLine();
  65. if (input6.equalsIgnoreCase("bacon")) {
  66. System.out.println("Ooh i love bacon i wish i could mary bacon!!");
  67. }
  68. else {
  69. System.out.println("Ooh thats nice but i myself prefer bacon if i could eat ");
  70. }
  71.  
  72. try{Thread.sleep(1000);}catch(InterruptedException e){}
  73.  
  74. System.out.println("I never asked how old you are " + naam + "?");
  75. int input7 = scan.nextInt();
  76. if (input7 >= 18) {
  77. 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");
  78. }
  79. else if (input7 < 18 ) {
  80. System.out.println("Ooh you're still young just like me i'm only 3 years old");
  81. }
  82.  
  83. try{Thread.sleep(1000);}catch(InterruptedException e){}
  84.  
  85. System.out.println("well i have no more questions left did you like to talk to me?");
  86. String input8 = scan.nextLine();
  87. String input9 = scan.nextLine();
  88. if (input8.equalsIgnoreCase("yes")) {
  89. System.out.println("yay i like to hear that goodbye " + naam );
  90. }
  91. else if (input9.equalsIgnoreCase("no")) {
  92. System.out.println("Ooh thats too bad well nice for being honest........dick!! ");
  93. }
  94. else {
  95. System.out.println("Thx for that awnser " + naam + " and bye");
  96. }
  97.  
  98. try{Thread.sleep(1000);}catch(InterruptedException e){}
  99.  
  100.  
  101.  
  102. }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement