<aside> <img src="/icons/pencil_gray.svg" alt="/icons/pencil_gray.svg" width="40px" />
This will primarily teach you the function of System.out.println(); which is used to output text that you put within the parenthesis as well as separate the text by line. In the case that you do not want to separate the text by line, you can also use the System.out.print(); method.
</aside>
1 | System.out.println("Hello World");
2 | System.out.print("What's Up World");
You’ll notice that the difference between these two methods is that one has the ln morphematical addition whereas the other does not. That’s because the function of the ‘LN[ln]’ is to provide a new line character immediately after the end of the output.
<aside> <img src="/icons/pencil_gray.svg" alt="/icons/pencil_gray.svg" width="40px" />
Next we will encounter the STRING data type. The directions that we give to the computer in computer science are called commands.
RUNNING CODE IS A 2-STEP PROCESS
You may be wondering what the importance of the “__” is in Java. Quotes do not actually output quotes, there are special ways you can print quotes that you’ll learn in Unit 2. With the System.out.print method the quotes allow the computer to compile and output what is known as a string literal; this means that within the quotes you can put any text or combination of symbols and the compiler will output exactly what was put inside.
</aside>