SlideShare a Scribd company logo
1 of 18
Download to read offline
TUNASAN NATIONAL HIGH SCHOOL
SDO - Muntinlupa City
ROWELL L. MARQUINA
Senior High School Teacher
TUNASAN NATIONAL HIGH SCHOOL
Lesson 3 - Java Programming
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;
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.
DISPLAYING TEXT ON SCREEN
The print method refers to the Java statement that
instructs the program to display text in a single line.
PRINT vs PRINTLN METHOD
The println method on the other hand is used to
display text in separate lines.
PRINT vs PRINTLN METHOD
As we have discussed earlier, the print method is used
to display text in a single line.
Even if you code the lines separately using print
method, the texts will still appear in a single line.
PRINT vs PRINTLN METHOD
The println method on the other hand is used to
display text in separate lines.
What happens in the code is that
after the first line of text is
displayed it will bring the cursor to
the next line before displaying the
second line of text and so forth.
System.out refers to the Java object that details where it will
display the output of the program.
ANATOMY OF THE PRINT METHOD
print refers to the method that instructs the program to
display the text in a single line.
(“Have a wonderful day!”) is the text that will be displayed
on the screen.
; is referred to as a separator which signifies the end
of the line code.
PRACTICE TEST 1:
Create a simple program which
will display the numbers 1-5 in a
single line. Each number must be
displayed using individual print
methods.
PRACTICE TEST 2:
Using println, create a simple
program which will display the
following information:
▪ Name
▪ Date of Birth
▪ Name of Father
▪ Name of Mother
PRACTICE TEST 3:
On a piece of paper, write the
expected output of the source
code below:
WHAT ARE COMMENTS?
Comments are non-executable Java statements that
are used by programmers to place notes, descriptions,
or explanations on their program.
It is also referred to as inline documentation because
it is used to document and provide explanations
about specific parts of the program.
This is an example of a comment in Java.
WHAT ARE COMMENTS?
Since comments are non-executable statements,
they do not have any effect on the program.
SINGLE-LINE COMMENTS
There are two ways of writing comments in Java. The
one you are seeing below is called a single-line
comment which is used for writing short narrative or
explanations in a program. It is characterized by two
forward slashes ( // ) at the beginning of the
comment.
This is a single-line comment in Java.
MULTI-LINE COMMENTS
The other method is by writing a multi-line comment
which is for writing complex and details
documentations on the program. It is a block
statements that starts with forward slash then asterisk
(/*) and ends with a (*/) asterisk and forward slash.
This is a multi-line comment in Java.
PRACTICE TEST 4:
Using println, create a simple program
which will display the required
information below. Include comments
that tells something about the
information you have provided.
▪ Nickname
▪ Childhood Hero
▪ Favorite Color
▪ Dream Profession
DISPLAYING TEXT ON SCREEN
AND WRITING COMMENTS
MR. ROWELL L. MARQUINA
Tunasan National High School
Senior High School Department
Email Address:
rowell.marquina001@deped.gov.ph
sirrowellmarquina@gmail.com
rmarquina@mitis.edu.ph

More Related Content

What's hot

Lks tik 8 smt i
Lks tik 8 smt iLks tik 8 smt i
Lks tik 8 smt i
irwan syah
 
Scratch Lesson 1 – Basics
Scratch Lesson 1 – BasicsScratch Lesson 1 – Basics
Scratch Lesson 1 – Basics
David Oromaner
 

What's hot (20)

Lks tik 8 smt i
Lks tik 8 smt iLks tik 8 smt i
Lks tik 8 smt i
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java Programs
 
Basic Concepts of Animation
Basic Concepts of AnimationBasic Concepts of Animation
Basic Concepts of Animation
 
Header files in c
Header files in cHeader files in c
Header files in c
 
Quiz
QuizQuiz
Quiz
 
Qbasic Tutorial
Qbasic TutorialQbasic Tutorial
Qbasic Tutorial
 
CHF Lesson 2 - Software and Software Categories.pdf
CHF Lesson 2 - Software and Software Categories.pdfCHF Lesson 2 - Software and Software Categories.pdf
CHF Lesson 2 - Software and Software Categories.pdf
 
Core Java Programming | Data Type | operator | java Control Flow| Class 2
Core Java Programming | Data Type | operator | java Control Flow| Class 2Core Java Programming | Data Type | operator | java Control Flow| Class 2
Core Java Programming | Data Type | operator | java Control Flow| Class 2
 
Java Array String
Java Array StringJava Array String
Java Array String
 
Scratch Lesson 1 – Basics
Scratch Lesson 1 – BasicsScratch Lesson 1 – Basics
Scratch Lesson 1 – Basics
 
Empowerment Technologies - Microsoft Word
Empowerment Technologies - Microsoft WordEmpowerment Technologies - Microsoft Word
Empowerment Technologies - Microsoft Word
 
8. pen scratch
8. pen scratch8. pen scratch
8. pen scratch
 
[EMPOWERMENT TECHNOLOGIES] - INTERNET THREATS
[EMPOWERMENT TECHNOLOGIES] - INTERNET THREATS[EMPOWERMENT TECHNOLOGIES] - INTERNET THREATS
[EMPOWERMENT TECHNOLOGIES] - INTERNET THREATS
 
Java features
Java featuresJava features
Java features
 
Empowerment Technology Lesson 3
Empowerment Technology Lesson 3Empowerment Technology Lesson 3
Empowerment Technology Lesson 3
 
How to Use Canva - Liezel Kabigting - Simpliezel.m4v
How to Use Canva - Liezel Kabigting - Simpliezel.m4vHow to Use Canva - Liezel Kabigting - Simpliezel.m4v
How to Use Canva - Liezel Kabigting - Simpliezel.m4v
 
22.10.17 instrumentation and data collection
22.10.17 instrumentation and data collection22.10.17 instrumentation and data collection
22.10.17 instrumentation and data collection
 
Introduction to Animation
Introduction to AnimationIntroduction to Animation
Introduction to Animation
 
Benefits Of Using Canva
Benefits Of Using CanvaBenefits Of Using Canva
Benefits Of Using Canva
 
Canva for Education.pdf
Canva for Education.pdfCanva for Education.pdf
Canva for Education.pdf
 

Similar to Lesson 3 - Displaying Text on Screen.pdf

(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
Raffaella D'angelo
 
02장 Introduction to Java Applications
02장 Introduction to Java Applications02장 Introduction to Java Applications
02장 Introduction to Java Applications
유석 남
 
1. Introduction Original - To Print
1. Introduction Original - To Print1. Introduction Original - To Print
1. Introduction Original - To Print
Chinthaka Fernando
 

Similar to Lesson 3 - Displaying Text on Screen.pdf (20)

(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
 
Intro to programing with java-lecture 1
Intro to programing with java-lecture 1Intro to programing with java-lecture 1
Intro to programing with java-lecture 1
 
AndroidHTP3_AppA.pptx
AndroidHTP3_AppA.pptxAndroidHTP3_AppA.pptx
AndroidHTP3_AppA.pptx
 
Java programming language basics
Java programming language basicsJava programming language basics
Java programming language basics
 
Programming 1.pptx
Programming 1.pptxProgramming 1.pptx
Programming 1.pptx
 
Sulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdfSulthan's_JAVA_Material_for_B.Sc-CS.pdf
Sulthan's_JAVA_Material_for_B.Sc-CS.pdf
 
Java lab1 manual
Java lab1 manualJava lab1 manual
Java lab1 manual
 
10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz10th class computer science notes in english by cstechz
10th class computer science notes in english by cstechz
 
02장 Introduction to Java Applications
02장 Introduction to Java Applications02장 Introduction to Java Applications
02장 Introduction to Java Applications
 
lecture 6
 lecture 6 lecture 6
lecture 6
 
Introduction to computer science
Introduction to computer scienceIntroduction to computer science
Introduction to computer science
 
Simple
SimpleSimple
Simple
 
Basics of java 1
Basics of java 1Basics of java 1
Basics of java 1
 
INTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATIONINTRODUCTION TO JAVA APPLICATION
INTRODUCTION TO JAVA APPLICATION
 
Computer
ComputerComputer
Computer
 
Solutions manual for absolute java 5th edition by walter savitch
Solutions manual for absolute java 5th edition by walter savitchSolutions manual for absolute java 5th edition by walter savitch
Solutions manual for absolute java 5th edition by walter savitch
 
1. Introduction Original - To Print
1. Introduction Original - To Print1. Introduction Original - To Print
1. Introduction Original - To Print
 
java training in chandigarh
java training in chandigarh java training in chandigarh
java training in chandigarh
 
Modern_2.pptx for java
Modern_2.pptx for java Modern_2.pptx for java
Modern_2.pptx for java
 
Lesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptxLesson 1 - Introduction to Computer Programming.pptx
Lesson 1 - Introduction to Computer Programming.pptx
 

More from ROWELL MARQUINA

QMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptxQMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptx
ROWELL MARQUINA
 
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdfHCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
ROWELL MARQUINA
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ROWELL MARQUINA
 

More from ROWELL MARQUINA (18)

QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
QMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptxQMMS Lesson 2 - Using Excel Formula.pptx
QMMS Lesson 2 - Using Excel Formula.pptx
 
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdfHCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
HCI Lesson 2 - Components of Human-Computer Interaction (HCI).pdf
 
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdfHCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
HCI Lesson 1 - Introduction to Human-Computer Interaction.pdf
 
DS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdfDS Lesson 2 - Subsets, Supersets and Power Set.pdf
DS Lesson 2 - Subsets, Supersets and Power Set.pdf
 
ITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdfITSP Lesson 6 - Information Privacy.pdf
ITSP Lesson 6 - Information Privacy.pdf
 
ITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdfITSP Lesson 5 - Intellectual Property Rights.pdf
ITSP Lesson 5 - Intellectual Property Rights.pdf
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
 
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdfITSP Lesson 1 - Ethics and Ethical Theories.pdf
ITSP Lesson 1 - Ethics and Ethical Theories.pdf
 
Animation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdfAnimation Lesson 4 - Tools and Equipment in Animation.pdf
Animation Lesson 4 - Tools and Equipment in Animation.pdf
 
DSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdfDSA Lesson 2 - Algorithm and Flowcharting.pdf
DSA Lesson 2 - Algorithm and Flowcharting.pdf
 
DSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdfDSA Lesson 1 - Introduction to Data Structures.pdf
DSA Lesson 1 - Introduction to Data Structures.pdf
 
Lesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdfLesson 1 - Introduction to Programming .pdf
Lesson 1 - Introduction to Programming .pdf
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
 
Animation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdfAnimation Lesson 2 - Environment and Market (Updated).pdf
Animation Lesson 2 - Environment and Market (Updated).pdf
 
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdfAnimation Lesson 3 - Occupational Health and Safety Procedures.pdf
Animation Lesson 3 - Occupational Health and Safety Procedures.pdf
 
Personal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdfPersonal Entrepreneurial Competencies (PECs).pdf
Personal Entrepreneurial Competencies (PECs).pdf
 
Environment and Market.pdf
Environment and Market.pdfEnvironment and Market.pdf
Environment and Market.pdf
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

Lesson 3 - Displaying Text on Screen.pdf

  • 1. TUNASAN NATIONAL HIGH SCHOOL SDO - Muntinlupa City ROWELL L. MARQUINA Senior High School Teacher TUNASAN NATIONAL HIGH SCHOOL Lesson 3 - Java Programming
  • 2. 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;
  • 3.
  • 4. 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. DISPLAYING TEXT ON SCREEN
  • 5. The print method refers to the Java statement that instructs the program to display text in a single line. PRINT vs PRINTLN METHOD The println method on the other hand is used to display text in separate lines.
  • 6. PRINT vs PRINTLN METHOD As we have discussed earlier, the print method is used to display text in a single line. Even if you code the lines separately using print method, the texts will still appear in a single line.
  • 7. PRINT vs PRINTLN METHOD The println method on the other hand is used to display text in separate lines. What happens in the code is that after the first line of text is displayed it will bring the cursor to the next line before displaying the second line of text and so forth.
  • 8. System.out refers to the Java object that details where it will display the output of the program. ANATOMY OF THE PRINT METHOD print refers to the method that instructs the program to display the text in a single line. (“Have a wonderful day!”) is the text that will be displayed on the screen. ; is referred to as a separator which signifies the end of the line code.
  • 9. PRACTICE TEST 1: Create a simple program which will display the numbers 1-5 in a single line. Each number must be displayed using individual print methods.
  • 10. PRACTICE TEST 2: Using println, create a simple program which will display the following information: ▪ Name ▪ Date of Birth ▪ Name of Father ▪ Name of Mother
  • 11. PRACTICE TEST 3: On a piece of paper, write the expected output of the source code below:
  • 12.
  • 13. WHAT ARE COMMENTS? Comments are non-executable Java statements that are used by programmers to place notes, descriptions, or explanations on their program. It is also referred to as inline documentation because it is used to document and provide explanations about specific parts of the program. This is an example of a comment in Java.
  • 14. WHAT ARE COMMENTS? Since comments are non-executable statements, they do not have any effect on the program.
  • 15. SINGLE-LINE COMMENTS There are two ways of writing comments in Java. The one you are seeing below is called a single-line comment which is used for writing short narrative or explanations in a program. It is characterized by two forward slashes ( // ) at the beginning of the comment. This is a single-line comment in Java.
  • 16. MULTI-LINE COMMENTS The other method is by writing a multi-line comment which is for writing complex and details documentations on the program. It is a block statements that starts with forward slash then asterisk (/*) and ends with a (*/) asterisk and forward slash. This is a multi-line comment in Java.
  • 17. PRACTICE TEST 4: Using println, create a simple program which will display the required information below. Include comments that tells something about the information you have provided. ▪ Nickname ▪ Childhood Hero ▪ Favorite Color ▪ Dream Profession
  • 18. DISPLAYING TEXT ON SCREEN AND WRITING COMMENTS MR. ROWELL L. MARQUINA Tunasan National High School Senior High School Department Email Address: rowell.marquina001@deped.gov.ph sirrowellmarquina@gmail.com rmarquina@mitis.edu.ph