title: How to fix these errors and any other suggestions?
body: <p>It's been over two days I've been looking through my code and I still have no idea what might be the issue with the code:
  It keeps on giving me an error on the if and else section for Q11, Q7, Q5 else.</p>
  <p>error: 'else without 'if' (//Q11 else, //Q7 else, and //Q5 else)</p>
  <p>If you have any more suggestion for my code please feel free to let me know :)</p>
  <pre><code>import java.awt.*;
  import hsa_ufa.Console; 
  
  public class Panophobia {
    static Console c = new Console(1350,1000); 
    
    public static void main(String[] args) throws InterruptedException
    {
    
    // VARIABLES
    
    String answer, userInputStr;
    int userInput, chestNumber;
    
    //INPUT
    
    // INPUT: Start
    Image item1Image = Toolkit.getDefaultToolkit ().getImage (c.getClass().getClassLoader().getResource(&quot;ward.jpg&quot;));
    c.drawImage(item1Image, 0, 0);
    
    // FONT + COLOUR
    c.setColor(new Color(255,255,255));
    c.setFont(new Font(&quot;Chomsky&quot;,Font.PLAIN,50));
    
    c.drawString(&quot;Panophobia&quot;,500,300);
    
    c.setFont(new Font(&quot;Open Sans Semibold&quot;,Font.PLAIN,20)); // FONT
    
    c.drawString(&quot;Press any Key to Start&quot;,520,350);
    
    c.getChar();
    c.clear();
  
    // INPUT: Game Start
    chestNumber = (int)(Math.random() * 8) + 1;
    
    // PROCESSING + OUTPUT (RUNNING GAME)
    
    c.setColor(new Color(0,0,0));
  
    //Q1 if
    Image item2Image = Toolkit.getDefaultToolkit ().getImage (c.getClass().getClassLoader().getResource(&quot;hotel.jpg&quot;));
    c.drawImage(item2Image, 0, 0);
    c.getChar();
    c.clear();
    
    //Q1 if
       { c.println(&quot;You've arrived at your destination, the one and only 'Palace Hotel'. You'll need to check in, let's figure out what way to go first: Left or Right?&quot;);
        answer = c.readLine();
        
    if (answer.equalsIgnoreCase(&quot;Left&quot;))  //Q2 if 
    {  c.println(&quot;You meet a dead end, but there are two doors on opposite sides, do you wish to open one? (y/n)&quot;);
       answer = c.readLine();
    
     if (answer.equalsIgnoreCase(&quot;y&quot;)) //Q3 if
     {  c.println(&quot;Which door do you choose to open? (Left, Right)&quot;);
        answer = c.readLine();
    
      if (answer.equalsIgnoreCase(&quot;Left&quot;)) //Q4 if
      {  c.println(&quot;You open the ominous door and to your surprise, the room is empty. You walk around the room and find a couple of items in the drawers and compartments, a pocket knife, a medical kit, a flask, and a key chain with 5 different keys. There are a total of 8 locked drawers on a dresser are locked (only one key will unlock the drawer), which ones do you choose to unlock? 1, 2, 3, 4, 5, 6, 7, and/or 8?&quot;);
         userInput = c.readInt();
    
       if (Math.random() &lt; chestNumber) //Q5 if
       { c.println(&quot;A Funnel Web Spider bites you, you have less than an hour to survive.&quot;);
         c.println(&quot;You grab the medical kit and you tightly wrap a bandaid around the bite.&quot;);
               
         { c.println(&quot;You turn around and walk back where you started, but something seems off, why are there no people around?&quot;); //Q6 if
          c.println(&quot;You should ask around! (Ask: concierge or housekeeper)&quot;);
          answer = c.readLine();
                    
         if (answer.equalsIgnoreCase(&quot;housekeeper&quot;)) //Q7 if
         { c.println(&quot;what can I help you with?&quot;);
           c.println(&quot;what do you mean there’s no one around?&quot;);
           c.println(&quot;look over there, the concierge is really busy attending to the guests!&quot;);
           c.println(&quot;you anxiously tap your finger against the black suitcase, you cannot look at her in the eyes.&quot;);
           c.getChar();
           c.clear();
                      
           { c.println(&quot;You've arrived at the Radio Station, it seems to be abandoned. Do you want to enter the building? (y/n)&quot;); //Q8 if
            answer = c.readLine();
  
           if (answer.equalsIgnoreCase(&quot;y&quot;))  //Q9 if
           { c.println(&quot;You enter the station, there are two rooms you can enter which one do you want to open first? (1/2)&quot;);
             answer = c.readLine();
    
            if (answer.equalsIgnoreCase(&quot;1&quot;)) //Q10 if
            { c.println(&quot;There’s blood splattered on one wall, are you brave enough to inspect? (y/n)&quot;);
              answer = c.readLine();
   
             if (answer.equalsIgnoreCase(&quot;y&quot;)) //Q11 if
             { c.println(&quot;There are no bodies, just blood. There’s a stench in the room that renders you unconscious.&quot;);
               c.getChar();
               c.clear();
               
              { c.println(&quot;Now that you’ve checked in, it’d be best to buy some things at a store. What store would you like to head over to? (Convenience Store/SuperMarket)&quot;);
              answer = c.readLine();
              
               if (answer.equalsIgnoreCase(&quot;SuperMarket&quot;)) //Q12 if 
               { c.println(&quot;The store looks full of people, you enter the store and take some pills to help with the anxiety, food, water and a flashlight/batteries.&quot;);
                c.println(&quot;Maybe you should head home.&quot;);
                c.println(&quot;You begin walking down the road you had driven on to get to the hotel, after walking for half an hour, all you seem to come across is a forest. You hear a loud thud somewhere near these green bushes, do you want to check it out? (y/n)&quot;);
                answer = c.readLine();
    
                if (answer.equalsIgnoreCase(&quot;y&quot;)) //Q13 if
                { c.println(&quot;You slowly walk over to the bush, there’s some light rustling, tension starts to build up in your body, your hand shakes as you reach to separate the small branches and leaves to see what's inside. The rustling becomes louder each time you put your hand closer to the bush, there’s a loud squeal, suddenly, a small lop bunny hops out, making you fall onto the soft green grass. You find a car key, do you want to take it? (y/n)&quot;);
                 answer = c.readLine();
    
                if (answer.equalsIgnoreCase(&quot;y&quot;)) //Q14
                { c.println(&quot;You quickly grab the keys, 'I should find that car.' You look nearby for whatever car those keys belong to, after an hour of searching, you finally come across it. You decide to visit the Radio Station.&quot;);
                  c.println(&quot;Congratulations! You now have a car.&quot;);
                  c.getChar();
                  c.clear();
                }
                 else //Q14 else
                 { 
                 c.println(&quot;You decide to walk to the Radio Station.&quot;);
                 }
                }
                
                else if (answer.equalsIgnoreCase(&quot;n&quot;)) //Q13 else
                { 
                c.println(&quot;I can't take someone else’s keys, it's wrong to do so&quot;);
                }
               }
              
               else if (answer.equalsIgnoreCase(&quot;Convenience Store&quot;)) //Q12 else
               { 
               c.println(&quot;It seems like the convenience store is closed!&quot;);
               }
              }
   
              else  //Q11 else
              { 
              c.println(&quot;You walk away from the blood and leave the building.&quot;);
              }
             }
             
             else //Q10 else
             { 
             c.println(&quot;There was no blood, it was a hallucination.&quot;);
             }
            }
                                    
            else //Q9 else
            { 
            c.println(&quot;There is a file compartment filled with voice and videotapes, you watch and listen to every single one. You’ve gained some knowledge of what had happened to this town.&quot;,10,300);
            }
           }
                                
           else //Q8 else
           { 
           c.println(&quot;You walk back to the road. Out of the corner of your eye, you see a large fast car coming your way. The car runs you over.&quot;);
           }
          }
                            
          else if (answer.equalsIgnoreCase(&quot;concierge&quot;))//Q7 else
          { 
          c.println(&quot;You walk towards the concierge's desk and begin your check in.&quot;);
          }
         }
                          
         else //Q6 else
         { 
         c.println(&quot;It seems like the person you're looking for isn't here.&quot;);
         }
        }
                       
        else //Q5 else
        { 
        c.println(&quot;There's nothing in that drawer.&quot;);
        }
       }
                      
       else if (chestNumber &lt; Math.random()) //Q4 else
       { 
       c.println(&quot;Wrong Key!&quot;);
       }
      } 
                    
      else if (answer.equalsIgnoreCase(&quot;Right&quot;)) //Q3 else
      { 
      c.println(&quot;There's nothing in that room, boring.&quot;);
      c.println(&quot;You turn around and walk back where you started, but something seems off, why are there no people around? You should ask around! (Ask: waitress, concierge, security guard, or housekeeper)&quot;);
      }
     }
                   
     else if (answer.equalsIgnoreCase(&quot;n&quot;)) //Q2 else
     { 
     c.println(&quot;You walk up to the front desk and begin your check-in, they require some kind of ID, you give them your passport.&quot;);
     }
    }
              
    else if (answer.equalsIgnoreCase(&quot;Right&quot;)) //Q1 else
    { 
    c.println(&quot;You walk up to the front desk and begin your check-in, they require some kind of ID, you give them your passport.&quot;);
    }
   }
   
    }
  }
  </code></pre>