Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Unit4ReviewQuestion8 {
- private static Scanner text;
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- System.out.println("What would you like to talk about?");
- text = new Scanner(System.in);
- String path = text.next();
- String Rabbit = "rabbit";
- if (path.equals(Rabbit)) {
- System.out.println("It seems you would like to talk about rabbits");
- } else {
- System.out.println("Why don't we talk about rabbits instead");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement