title: Compilation Error in a very silly program
body: <pre><code>import java.util.Scanner;
  
  public class KekOrCringe {
  
      public static void main(String[] args) {
  
          Scanner scan = new Scanner(System.in);
          String userGuess = &quot;&quot;;
          boolean Continue = true;
          boolean ProperResponse = true;
          boolean IsCorrect = true;
          boolean YesNo = true;
  
              while (Continue)
              {
                  int secretAnswer = (int)(Math.random() * 2 + 1);
                  kekOrCringe(secretAnswer);
                  while (!IsCorrect)
                  {
                      System.out.println(&quot;Kek or Cringe?&quot;);
                      ProperResponse = false;
                      while (!ProperResponse) {
                          userGuess = scan.nextLine();
                          if (userGuess != &quot;Kek&quot;) 
                              System.out.println(&quot;Your entry is invalid, please try again!&quot;);
                          else if (userGuess != &quot;Cringe&quot;)
                              System.out.println(&quot;Your entry is invalid, please try again!&quot;);
                          else 
                              ProperResponse = true;
                      }
                      for (int guessCount = 0; guessCount &lt; 1; guessCount++) {
                          if (userGuess = &quot;Cringe&quot; &amp;&amp; userGuess != secretAnswer) {
                              System.out.println(&quot;It's KeK!&quot;); 
                              guessCount++; }
                          else if (userGuess = &quot;Kek&quot; &amp;&amp; userGuess != secretAnswer) { 
                              System.out.println(&quot;It's CrInGe!&quot;); 
                              guessCount++; }
                          else
                              System.out.println(&quot;Mr. Morgan, you got it right my boy!&quot;);
                              IsCorrect = true;
                          }
                      }
                  }
                  YesNo = false;
                  while(!YesNo) {
                      System.out.println(&quot;Would you like to play again? Yes/No&quot;);
                      String answer = scan.nextLine();
                      if (answer.equals(&quot;No&quot;)) {
                          Continue = false;
                          YesNo = true;
                          System.out.println(&quot;Fine. You were Cringe anyway!&quot;);
                      }
                      else if (answer.equals(&quot;Yes&quot;)) {
                          YesNo = true;
                          Continue = true;
                          IsCorrect = false;
                      }
                  }
              }
          
  
                              
      public static String kekOrCringe(int secretAnswer) {
          if (secretAnswer = 1) { return &quot;Kek&quot;;}
          if (secretAnswer = 2) { return &quot;Cringe&quot;;}
      }
  } 
  </code></pre>
  <p>Probably an overly complex way to do something unnecessary, but this is my first year in college learning to code, and I was asked to give this a try. I think it's funny, and will probably be funnier if it work, along with being good practice. I'm having trouble converting the int secretAnswer to a returned string, and then comparing the userGuess to the return type. Getting compilation errors on line 32 and 35. Any tips would be appreciated.</p>
  <p>P.S. I realize it's silly. Trying to use this silly code as a learning opportunity.</p>