https://github.com/jundel-malazarte/java-programming-exercises
Java program exercises
https://github.com/jundel-malazarte/java-programming-exercises
Last synced: 2 months ago
JSON representation
Java program exercises
- Host: GitHub
- URL: https://github.com/jundel-malazarte/java-programming-exercises
- Owner: Jundel-Malazarte
- Created: 2024-10-23T07:00:18.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T20:10:42.000Z (7 months ago)
- Last Synced: 2025-02-12T06:25:05.914Z (4 months ago)
- Language: Java
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java Programming Exercises
This repository contains various Java programming exercises. Below is a step-by-step tutorial on how to run the Java Preliminaries exercises on your local machine.
---
### Tutorial on How to Run the Java Preliminaries
Follow these steps to clone and run the Java Preliminaries program:
**Step 1: Clone the Repository**
- Open your terminal (CMD or PowerShell).
- Run the following command to clone the repository:
```bash
git clone https://github.com/Jundel-Malazarte29/java-programming-exercises.git
**Step 2: Change to the Repository Directory**
- Navigate to the newly cloned repository directory
```bash
cd java-programming-exercises**Step 3: Navigate to the src Folder**
- The src folder contains the Java source code. Change to the src folder
```bash
cd src**Step 4: Navigate to the Preliminaries Package**
- Inside the src folder, navigate to the Preliminaries package
```bash
cd Preliminaries**Step 5: Compile the Java Program**
- Use the javac command to compile one of the Java files in the Preliminaries package. For example, to compile Number.java, use
```bash
javac Number.java**Step 6: Run the Compiled Program**
- After successfully compiling the program, run it with the java command
```bash
java Number**Step 7: View the Output**
- The program will run, and the output will be displayed in the terminal.
```bash
Enter a number: