An open API service indexing awesome lists of open source software.

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

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: