Java Error can any one help

I keep getting this java error (inner class cannot have static declarations ) dont know why I just started learning Java dont know what im doing wrong. Thanks

import java.applet.Applet;

import java.awt.Graphics;

import java.awt.event.*;

publicclass commentsextends Applet

{

/**

* @author Craig

*

* This class demonstrates use of:

* Line Comments

* Block Comments

* JavaDoc Comments.

*/

publicclass CommentsExample{

/**

* Program comments are nonexecuting,

* statements you add to a program

* documentation for the purpose

* of documentation.

*/

protectedstatic String greeting ="Hi";

//Program comments are nonexecuting,

//statements you add to a program

privatestatic String name ="Guys";//documentation

public CommentsExample(){

//of documentation.()

super();

}

/**

* This is the entry point of the application.

* main() is executed first by the JVM.

*/

publicvoid main(String[] args){

/*

* Program comments are nonexecuting,

* statements you add to a program

* documentation for the purpose

* of documentation.

*/

System.out.println(greeting +" " + name);

}

}

}

[2438 byte] By [benzspidaa] at [2007-10-3 3:00:17]
# 1
You're declaring a class inside a class, (inner class), and inner classes can't have static members. The error message is perfectly clear.You probably want to get rid of > public class CommentsExample {> }
CeciNEstPasUnProgrammeura at 2007-7-14 20:49:52 > top of Java-index,Java Essentials,Java Programming...
# 2
Also, applets have no main method. So I don't know what you're trying to do there after all.
CeciNEstPasUnProgrammeura at 2007-7-14 20:49:52 > top of Java-index,Java Essentials,Java Programming...