A simple Java console application that demonstrates basic Java programming concepts and console input/output operations.
This Java Console Application is designed to showcase fundamental Java programming principles through a command-line interface. The application allows users to interact with various features through text-based commands, demonstrating core concepts such as:
- Java Development Kit (JDK) 21 or higher
- Any Java IDE (Eclipse, IntelliJ IDEA, etc.) or a text editor
-
Clone the repository:
git clone https://github.com/vkpro/JavaConsoleApp.git -
Open the project in your preferred IDE or navigate to the project directory in your terminal.
-
Compile the Java files:
./gradlew buildWithout Gradle:
mkdir -p build/classes javac -d build/classes src/main/java/com/github/vkpro/*.java -
Run the application:
./gradlew runWithout Gradle:
java -cp build/classes com.github.vkpro.MainCreate executable JAR (optional):
./gradlew jar java -jar build/libs/JavaConsoleApp-*.jarWithout Gradle (create JAR):
mkdir -p build/libs jar cvfe build/libs/JavaConsoleApp.jar com.github.vkpro.Main -C build/classes . java -jar build/libs/JavaConsoleApp.jar
Please choose an option:
1. Caesar Cipher Encryption
2. Caesar Cipher Decryption
3. Arithmetic Expression Evaluation
0. Exit
Please choose an option:
1. Encrypt text from console
2. Encrypt text from file
0. Back to main menu
Enter arithmetic expression: 2 + 3 * 4
Result: 14
Enter arithmetic expression: (10 + 5) / 3
Result: 5
Enter arithmetic expression: 2 * (3 + 4) - 1
Result: 13
Enter arithmetic expression: -5 + 3
Result: -2
src/main/java/com/github/vkpro/- Source code directoryMain.java- Main application entry pointCaesarCipher.java- Caesar cipher implementationExpressionEvaluator.java- Arithmetic expression parser and evaluatorFileHandler.java- File operations handler
docs/- Documentation files
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Project Link: https://github.com/vkpro/JavaConsoleApp