public class MyClass {
}
public and class are reserved Java keywords and you may not use them to name entities in your own library files.
MyClass is the name of the class - this can be anything you like, however:
- must not contain spaces - rule
- should start with an uppercase letter - convention
- should not start with a number - convention
- where there are multiple words in the class name, the first letter of each word should be capitalised (also known as Camel-Case) - convention
Every class declaration includes a set of curly braces - one that opens a block, and one that closes the block. All code for the class must be contained within this set or the code will fail.
Another example:
public class NetworkUser {
}
This class is called NetworkUser.

