Memis Baba wrote:
This will not compile.
Line 1: Public is not the same as public (remember Java is case sensitive). You must also specify what type is the parameter you're passing to the method.
Same with line 3. Class names start with an uppercase letter so it's System, not system.
Also the System class doesn't have a member named output, but one named out.
Finally, you are printing x, which doesn't exist. However, you are passing a
something (because you didn't specify the type) named strx to the method, and that's what you want to print.
As you can see, these "details" DO matter in Java.