Welcome to the ur-fop-jav-ex1 repository! This project is a collection of Java exercises aimed at helping beginners understand the fundamentals of programming. It is an excellent resource for students or anyone looking to strengthen their Java programming skills.
This repository was created as part of a foundational programming course. It focuses on essential programming principles like data types, control structures, loops, methods, and object-oriented programming concepts. The exercises are designed to build proficiency in Java programming step by step.
- Hands-On Exercises: Includes practical exercises to reinforce learning.
- Organised Structure: Files are clearly separated into source code and compiled binaries.
- Beginner-Friendly: Designed for those new to Java programming.
- Real-World Examples: Exercises demonstrate concepts through relatable scenarios.
- Extensible: Contributions are welcome to expand and improve the content.
The repository contains two main folders:
src
: Contains the source code files (.java
) for all exercises. Editable and viewable in any text editor or IDE.bin
: Contains the compiled class files (.class
). These are the executable versions of the programs.
Each folder includes the following exercises:
ArithmeticCalculations
CelsiusToFahrenheit
CuboidVolume
FahrenheitToCelsius
InchesToCentimeters
MetersToInches
RectangleArea
StringOutput
UserInputCalculations
To work with this repository, ensure the following are set up:
- Java Development Kit (JDK): Version 8 or above.
- IDE/Text Editor: Any Java-compatible IDE (e.g., IntelliJ IDEA, Eclipse, NetBeans) or a basic text editor.
- Basic knowledge of how to compile and run Java programs.
-
Clone the repository:
git clone https://github.com/nurulashraf/ur-fop-jav-ex1.git
-
Navigate to the repository folder:
cd ur-fop-jav-ex1
-
Open the
src
folder in your IDE or text editor to view and edit the source code. -
To run an exercise, navigate to the
src
folder and compile the desired.java
file:javac ArithmeticCalculations.java
Then run the compiled program:
java ArithmeticCalculations
-
Use the
bin
folder to directly run the compiled.class
files if needed.
The repository also includes a PDF file named Questions.pdf
, which provides the requirements and descriptions for each exercise. This document serves as a guide to understand what each program is supposed to achieve. Refer to this file to get a clear idea of the objectives and expected outputs for each task.
Contributions are encouraged! If you'd like to improve this repository or add new exercises, follow these steps:
- Fork the repository.
- Create a branch for your updates:
git checkout -b feature/new-exercise
- Commit your changes:
git commit -m "Added a new exercise on [topic]"
- Push your branch:
git push origin feature/new-exercise
- Open a Pull Request.
Please ensure your code is well-documented and formatted.
This repository is licensed under the MIT License. The MIT License was chosen to provide users with the flexibility to use, modify, and distribute the code freely. It encourages collaboration and sharing while requiring credit to the original creator. This permissive licensing makes it suitable for educational and open-source projects.
Happy coding! For any issues or questions, feel free to open an issue in the repository.