Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Bobby
- {
- public static void main(String[] args)
- {
- Scanner in = new Scanner(System.in);
- String sentence = in.nextLine();
- while (!sentence.equals("END")) {
- if (sentence.equals("")) {
- System.out.println("Good then");
- }
- else if (sentence.charAt(sentence.length()-1) == '?') {
- if (sentence.equals(sentence.toUpperCase())) {
- System.out.println("I know what I am doing!");
- }
- else {
- System.out.println("Good");
- }
- }
- else if (sentence.equals(sentence.toUpperCase())) {
- System.out.println("Cool man");
- }
- else {
- System.out.println("Uum");
- }
- sentence = in.nextLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement