title: error class interface or enum expected
body: <p>i am trying to compile the following simple code and receiving the error that,
  error class interface or enum expected
  please help me to find out my error.</p>
  
  <pre><code>public class Scores
  { 
      public static final int maxEntries =5; 
  
      int numEntries; 
      protected GameEntry[] entries; 
  
      public Scores() 
      {
          entries = new GameEntry[maxEntries];
          numEntries = 0;
      }
  
      public String toString()
      {
          String s = "[";
          for (int i=0 ; i &lt; numEntries; i++)
          {
              if (i &gt; 0) s = ","; // separate entries by commas   
              s = s + entries[i].toString() ;
          }
          return s + "]";
      }
  
      public void add(GameEntry e) 
      {
          entries[numEntries]=e;
          numEntries++;
      }
  
      public void add(GameEntry e)
      {
          int newScore = e.getScore();
          if (numEntries == maxEntries) 
          { 
              if (newScore &lt;= entries[numEntries-l].getScore())
              return;
          }
          else
          return numEntries++;
  
          int i = numEntries-l;
          for ( ; (i &gt;= 1) &amp;&amp; (newScore &gt; entries[i-1].getScore()); i--)
          entries[i] = entries[i-1]; 
          entries[i] = e; 
      }
  }
  
      public static  void main(String args[])
      {
      Scores s1=new Scores();
              GameEntry e1=new GameEntry("Paul",750);
          s1.add(e1);
  
          GameEntry e2=new GameEntry("John",770); 
          s1.add(e2); 
  
          system.out.println(s1.toString());
  
          GameEntry e1=new GameEntry("Sam",600);
          s1.add(e1);
  
          GameEntry e2=new GameEntry("Raj",800);  
          s1.add(e2);
  
  
          system.out.println(s1.toString());
  
          GameEntry e1=new GameEntry("Gobi",550);
          s1.add(e1);
  
          GameEntry e2=new GameEntry("Raj",580);  
          s1.add(e2);
  
  
          system.out.println(s1.toString());
  
      }
  </code></pre>