Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com;
- import java.util.Scanner;
- public class Boby
- {
- public static void main(String[] args)
- {
- Scanner scanner = new Scanner(System.in);
- while (true) {
- String input = scanner.nextLine();
- boolean isUpperCase = input.equals(input.toUpperCase());
- if (input.endsWith("?") && isUpperCase) {
- System.out.println("Спокоооо, знам к'во правя!");
- }
- else if (isUpperCase) {
- System.out.println("Споко бе, ман!");
- }
- else if (input.endsWith("?")) {
- System.out.println("Добре.");
- }
- else if (input.isEmpty()) {
- System.out.println("Хубаво деее");
- }
- else {
- System.out.println("Ахъ");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement