title: Error: ';' expected
body: <p>This may be stupid. But, i'm getting an error saying: "error: ';' expected If(!Temp_List.isEmpty())" when trying to build the below code. I can't figure it out. Could anybody please help to sort out this problem ? </p>
  
  <p>Thanks in advance !</p>
  
  <pre><code>public class Error_Case
  {
  
      ArrayList&lt;String&gt; Temp_List=new ArrayList&lt;String&gt;();
  
      private class CHECK_CLASS
      {
          public void Check()
          {
              If(!Temp_List.isEmpty())
              {
                  System.out.println("Temp_List is not empty !");
              }
          }
      }
  
      public void run()
      {
          CHECK_CLASS new_Class=new CHECK_CLASS();
          new_Class.Check();
      }
  
      public static void main (String[] args)
      {
          Error_Case controller=new Error_Case();
          controller.run();
      }
  }
  </code></pre>