Ask coding questions

← Back to all posts
Help me please
CoderSloth909 (1)

I just started following along with a how-to code video in java, but when I print stuff it only prints "Hello world!" and nothing else, do you know why it is doing this? By the way, I am a super new coder and I really need help. The video is pretty old and it is using a different website to code but I don't think that is the case. If you do end up helping me thank you so much! Also sorry if the coding is super bad... I am still working on it.

Answered by CodeMaster007 (108) [earned 5 cycles]
View Answer
CodeMaster007 (108)

Hey! Your error is that you said
you should have said....
System.out.println("Hello, World!");

CoderSloth909 (1)

no, the problem is that it is saying hello world, and not just hello

CodeMaster007 (108)

Oh. That is a error with not the code itself but the settings. The console probably has a error and is executing some messed up code somewhere. I recommend making a new project and doing the tutorial off there. @CoderSloth909

CoderSloth909 (1)

@CodeMaster007 yep it does, thanks for the help :).

codingjlu (215)

You're using System.out.print(); instead of System.out.println();.

The difference:


Prints line without break. Example:

// ...
System.out.print("Hello, ");
System.out.print("I'm super cool!");
// ...

Hello, I'm super cool!


Prints with line break. Example:

// ...
System.out.println("This line is continueous until...");
// ...


This line is continueous until...