Skip to content

Commit 796879f

Browse files
committed
Update lesson 02
1 parent 0b25dbb commit 796879f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

SourceCode/chap_04-Operations/Lesson_02/RelationalOperators.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*****************************************************************************
22
* PROJECT: Java-101 Comprehensive Programming Course
33
* MODULE: Introduction to Java Fundamentals
4-
* LESSON: 3.2 - Relational Operators
4+
* LESSON: 4.2 - Relational Operators
55
*
66
* AUTHOR: Dr. Saad Laouadi, Ph.D.
77
* CREATED: March 2025
8+
* UPDATED: April 2025
89
*
910
* Copyright © 2025 Dr. Saad Laouadi. All Rights Reserved.
1011
* See LICENSE file for complete terms.
@@ -17,6 +18,8 @@ public static void main(String[] args) {
1718
int b = 20;
1819
int c = 10;
1920

21+
displayBanner('*', 72);
22+
2023
System.out.println("RELATIONAL OPERATORS DEMONSTRATION");
2124
System.out.println("==================================");
2225
System.out.println("Working with variables: a = " + a + ", b = " + b + ", c = " + c);
@@ -84,5 +87,13 @@ public static void main(String[] args) {
8487
if (a == c) {
8588
System.out.println(" a equals c - this code executes when condition is true");
8689
}
90+
displayBanner('*', 72);
91+
}
92+
93+
static void displayBanner(char c, int length){
94+
for (int i=0; i<length; i++){
95+
System.out.print(c);
96+
}
97+
System.out.println();
8798
}
8899
}

0 commit comments

Comments
 (0)