File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
SourceCode/chap_04-Operations/Lesson_02 Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments