title: java <identifier> expected when initializing variables
body: <p>I wanted to do a little Farming game and started to write classes for resources and crops. But when i initialize my resource at the beginning it gives me an identifier expected error.By the way dont mind the German comments. :D</p>
  
  <pre><code>public class HarvestinaNutshell extends JFrame {
    // Anfang Attribute
    public final Resource itemWheat; 
    public final Resource itemBarley; 
    // Ende Attribute
  
    public HarvestinaNutshell(String title) { 
      // Frame-Initialisierung
      super(title);
      setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
      int frameWidth = 300; 
      int frameHeight = 300;
      setSize(frameWidth, frameHeight);
      Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
      int x = (d.width - getSize().width) / 2;
      int y = (d.height - getSize().height) / 2;
      setLocation(x, y);
      setResizable(false);
      Container cp = getContentPane();
      cp.setLayout(null);
      // Anfang Komponenten
  
      // Ende Komponenten
  
      setVisible(true);
    } // end of public HarvestinaNutshell
  
    // Anfang Methoden
    itemWheat = new Resource(1,"Wheat",true,100);
    itemBarley = new Resource(1,"Barley",true,120);
    // Ende Methoden
  
    public static void main(String[] args) {
      new HarvestinaNutshell("HarvestinaNutshell");
    } // end of main
  
  } // end of class HarvestinaNutshell
  </code></pre>
  
  <p>at itemWheat = new Resource(1,"Wheat",true,100); i get an error behind the itemWheat that says identifier expected and i couldnt find a reason to it.</p>