This repository contains a series of exercises designed to help beginners grasp the fundamentals of Java programming. The exercises cover essential topics such as data types, control structures, loops, methods, and object-oriented programming principles. These solutions are part of a university exercise focused on applying fundamental Java programming concepts.
src/
: Contains the source code files for each exercise.bin/
: Includes the compiled bytecode files.Questions.pdf
: Provides detailed descriptions and requirements for each exercise.
- Clone the Repository: Download the repository to your local machine using
git clone https://github.com/nurulashraf/java-basics-exercises.git
. - Navigate to the Source Directory: Change to the
src
directory where the Java files are located. - Compile the Exercises: Use
javac
to compile the Java files. For example,javac StringOutput.java
. - Run the Exercises: Execute the compiled classes using the
java
command. For example,java StringOutput
.
- Java Development Kit (JDK): Ensure that JDK 8 or higher is installed on your system.
- Text Editor or Integrated Development Environment (IDE): Use a text editor like VS Code or an IDE such as IntelliJ IDEA or Eclipse for editing and running the code.
Contributions are welcome. If you have suggestions for improvements or additional exercises, feel free to fork the repository, make your changes, and submit a pull request.
This project is open-source and available under the MIT License. For more details, refer to the LICENSE file in the repository.