Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner keyboard = new Scanner(System.in);
- boolean alive = keyboard.nextBoolean();
- boolean big = keyboard.nextBoolean();
- if (big = true) {
- if (alive = true) {
- System.out.println("whale");
- } else {
- System.out.println("mountain");
- }
- } else {
- if (alive = true) {
- System.out.println("mouse");
- } else {
- System.out.println("zombie kitten");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement