Skip to content

Jundel-Malazarte/java-programming

Repository files navigation

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) || Vscode terminal
  • Run the following command to clone the repository:
    git clone https://github.com/Jundel-Malazarte29/java-programming.git
    

Step 2: Change to the Repository Directory

  • Navigate to the newly cloned repository directory
    cd java-programming
    

Step 3: Navigate to the src Folder

  • The src folder contains the Java source code. Change to the src folder
    cd src
    

Step 4: Navigate to the Preliminaries Package

  • Inside the src folder, navigate to the Preliminaries package
     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
    javac Number.java
    

Step 6: Run the Compiled Program

  • After successfully compiling the program, run it with the java command
    java Number
    

Step 7: View the Output

  • The program will run, and the output will be displayed in the terminal.
    Enter a number: 

Releases

No releases published

Packages

No packages published

Languages