An educational project that demonstrates basic control flow operations in Java through an interactive console application.
This repository contains a Java console program that provides an explanation and syntax example of a fundamental control flow statement. The user interacts with a menu-based system and selects which operator they want to learn about.
The project was created as a learning assistant for mastering Java basics:
-
Conditional operators
-
Loops
-
Break/continue statements
- Conditional operators
if / elseswitch
- Loops
forwhiledo-while
- Branching
breakcontinue
- Java SE (
version 17)
- Clone the repository:
git clone https://github.com/YuliyaZimenina/Info_System_ver1.git
- Open the project in your favorite IDE (IntelliJ IDEA, Eclipse, etc.) or go to the project folder:
cd Info_System_ver1
- Make sure Java 17 is set as the project SDK.
- Compile and run class
InfoSystemDemo.javain your IDE or the command line.
public class InfoSystem {
void infoOn(int menuItem){
switch (menuItem){
case '1':
System.out.println("Operator If: \n");
System.out.println("if(condition) operator;");
System.out.println("else operator;");
break;
case '2':
System.out.println("Operator Switch: \n");
System.out.println("switch(statement) {");
System.out.println(" case constanta:");
System.out.println(" sequences of operators");
System.out.println(" break;");
System.out.println(" // ...");
System.out.println("}");
break;
// ...
}
}
}- Launching the program:
- Output of information at the user's choice:
- Output of information at the user's choice:
- Completion of the program:



