The Print() Method | |||
| |||
Print Text You learned from the previous chapter that you can use the
You can add as many
Double Quotes When you are working with text, it must be wrapped inside double quotations marks If you forget the double quotes, an error occurs:
The Print() Method There is also a The only difference is that it does not insert a new line at the end of the output:
Print Numbers You can also use the However, unlike text, we don't put numbers inside double quotes:
Tags: Java Print print() println() | |||
| |||
| |||
|
OTHER POSTS IN THE SAME CATEGORYJava Inheritance (Subclass and Superclass)Java PackagesJava Abstract Classes and MethodsJava Classes and ObjectsJava RecursionJava ScopeJava MethodsJava ArraysJava While Loop/Do While Loop/For Loop/For-Each Loop/Break/ContinueJava Switch StatementsJava Short Hand If...Else (Ternary Operator)Java If ... ElseJava MathJava VariablesJava CommentsJava SyntaxJava Getting StartedWhat is Java? |