Hi,
I realise that this will have come up before but I am not sure what to search for.
I have installed Java 1.6.0_24 and set my Paths (I think) I have followed the instructions for Moose Greetings (
https://coderanch.com/how-to/java/how-to-create-java-program) When I compile I get an error stating:
MooseGreetings.java:1: class MooseGreeting is public, should be declared in a file named MooseGreeting.java
public class MooseGreeting {
Please could someone let me know what I am doing wrong, the text was copied from the webpage.
Many thanks