Questions tagged [println]

In programming, `println` generally prints out the arguments given, then moves to a new line for subsequent output.

In programming, println generally outputs the arguments supplied, then moves to a new line for any further output operations. For example, in Java you could write the following:

System.out.print("Hello ");
System.out.println("World");
System.out.println("Goodbye");

And the console would output (with \n representing newline characters):

Hello World\n
Goodbye\n

There are several languages that use the println() method; Others have different syntax that accomplishes the same functionality.

617 questions
-8
votes
1 answer

Printing statements using a method

Basically I've been set some work where I have to have 4 methods but I don't really understand how methods work. One of these methods basically has to print out two set statements that's it and I have no idea how to do it as most examples across the…
-10
votes
1 answer

How to print values in Java?

First, do not be scared by the size of the question kkkkk   I am studying the OOP course in Java, and the teacher has passed some content there that has not had time to write the code. Then I have a little doubt! I have 3 classes in java. The…
1 2 3
41
42