Java Lesson 3 - Displaying Text On Screen
Java Lesson 3 - Displaying Text On Screen
ROWELL L. MARQUINA
Senior High School Teacher
TUNASAN NATIONAL HIGH SCHOOL
LEARNING OBJECTIVES:
At the end of the session, you will be able to:
1. differentiate print and println from
one another;
2. display text on screen using print and
println;
3. discuss what is a comment in Java
and what it is used in a program; and
4. demonstrate how to display
comments on a Java program;
DISPLAYING TEXT ON SCREEN
One of the most basic competencies in Java
programming is how to instruct the program to
display text on the screen.
Java offers two ways of displaying text output on the
screen using the print, and println methods.
PRINT vs PRINTLN METHOD
The print method refers to the Java statement that
instructs the program to display text in a single line.
Email Address:
[email protected]
[email protected]
[email protected]