The tutorial has an example: "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
Type: Posts; User: Norm
The tutorial has an example: "Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
If that is all your compiler says then your compiler is not worth much.
Try using the javac compiler in a command prompt window. It gives good error messages.
That does not say what the problem is. Did you leave off some of the error message?
Posting at multiple sites is allowed. Just tell us so we don't waste time answering a question that has been answered.
The AND operator && is for boolean operands. To get a boolean operand from...
Also posted at: Problem with string [...]