import java.util.*; import java.io.*; class hugz { public static void main(String args[]) { Scanner kb = new Scanner(System.in); System.out.println("Hey, I heard you were feeling down. I want to cheer you up!"); System.out.println(""); System.out.println("First, tell me your name."); String name = kb.nextLine(); System.out.println("Now, would you like a hug or a cookie? :) Type in \"hug\" for a hug and \"cookie\" for a cookie."); String input01 = kb.next(); if (input01.equals("hug")) { System.out.println("Aww, let me hug you! T_T *gives " + name + " a hug*"); } if (input01.equals("cookie")) { System.out.println("Hee~. Here's a cookie for you. :3 *gives " + name + " a cookie*"); } } }