This repository contains all the source codes of projects and laboratories for our COMP-002 Java programming class during my first semester as a first-year BSIT student.
src/main/java/BSIT1stSem: This folder contains all the projects and laboratories related to the COMP-002 course.src/main/java/Practice: This folder contains additional practice exercises and personal projects.
This is a Maven-based project, as indicated by the pom.xml file. You can open it in any IDE that supports Maven (like Apache NetBeans) or build and run it from the command line.
- Open your IDE (e.g., Apache NetBeans).
- Go to
File > Open Projectand select the cloned repository folder. - The IDE should automatically recognize it as a Maven project and load the necessary dependencies.
- Find the main class to run the desired project.
-
Clone the repository.
-
Navigate to the project directory.
-
Build the project: The
pom.xmlfile includes the following dependencies:- gson:
2.11.0 - httpclient5:
5.4 - jline:
3.27.0
To compile the project and download these dependencies, run:
mvn clean install
- gson:
-
Run the main class: (Note: You may need to specify the correct main class to run a specific project.)
mvn exec:java