title: error: '.class' expected
body: <p>Hi friends while compiling the  below error is coming</p>
  
  <p>error: '.class' expected</p>
  
  <p>I'm not able to find what is the error. I checked in many websites but not able to find why this error is coming. Plz Help</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>import java.io.*;
  
  class Test
  {
      boolean isGoodEmployee(boolean ismarried,int noofchild,String middlename,String childnames[])
      {
          boolean child,letter,last,child;
  
          if (noofchild &lt;= 2)
              child=true;
          boolean firstletter = middlename.startsWith("k");
          boolean lastletter = middlename.endssWith("e");
  
          if (firstletter &amp;&amp; (!lastletter))
              letter = true;
  
          int lastnameletterscount = lastname.length();
  
          if (lastnameletterscount &gt; 4)
              last = true;
  
          String name = raju;
  
          for (int i=0; i &lt; noofchild; i++)
              if(name.equalsIgnoreCase(childnames[i]))
              {
                  child = true;
                  break;
              }
      }
  }
  
  
  class GoodEmployee
  {
      public static void main(String args[]) throws IOException
      {
          String firstname, middlename, lastname;
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          System.out.println("enter the first name of employee");
          firstname = br.readLine();
          System.out.println("enter the middle name of employee");
          middlename = br.readLine();
          System.out.println("enter the last name of employee");
          lastname = br.readLine();
          //System.out.println("full name of employee is:"+first+middle+last);
          System.out.println("enter employee is married or not");
          boolean ismarried = Boolean.parseBoolean(br.readLine());
  
          if (ismarried)
              System.out.println("enter number of childrens");
  
          int noofchild = Integer.parseInt(br.readLine());
          String childnames[] = new String[noofchild];
          System.out.println("enter children names");
  
          for (int i=0; i &lt; noofchild; i++)
              childnames[i] = br.readLine();
          Test t = new Test();
          t.isGoodEmployee(ismarried,noofchild,middlename,childnames[]);
      }
  }
  </code></pre>
  
  <p>I'm using "javac GoodEmployee.java" to compile the program</p>