Solve This Java - Win 8 SBD [Closed]

Words
173
Reading
1 min
Listen
Play
9y


Source: Pexels


Hi guys, come and play this game. If you look below, there's a basic Java syntax.

Only 3 steps to this game:

  1. Find the answer to question One. It is a number (integer) and you have to use it for Question Two.
  2. Substitute the phrase "Find the number for this" with the number you found in Question One.
  3. Comment below this post, the sentence / phrase that you will get if you execute the code.

Question One

What is 2 + 2?

Question Two

Replace the value of the int Answer with the answer from question One and let me know what phrase / sentence you'll get. Has to be exact.


public class MyClass {
public static void main(String args[]) {

  int Answer = [Find the number for this];

    switch (Answer){

        case 3 : System.out.println("Hello Sir");
                            break; 
        case 9 : System.out.println("Upvote Pls");
                            break;
        case 11 : System.out.println("Follow Sir");
                            break;
        default:
            System.out.println("Flagged");
            
    }

}

}


First person to give the correct (exact) answer wins 8 SBD.

Solve This Java - Win 8 SBD [Closed] | Ecency