Skip to content

nurulashraf/java-basics-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Basics Exercises

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.

Repository Structure

  • 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.

Getting Started

  1. Clone the Repository: Download the repository to your local machine using git clone https://github.com/nurulashraf/java-basics-exercises.git.
  2. Navigate to the Source Directory: Change to the src directory where the Java files are located.
  3. Compile the Exercises: Use javac to compile the Java files. For example, javac StringOutput.java.
  4. Run the Exercises: Execute the compiled classes using the java command. For example, java StringOutput.

Prerequisites

  • 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.

Contributing

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.

License

This project is open-source and available under the MIT License. For more details, refer to the LICENSE file in the repository.