GitHub - Hardvan/Learning-Java: This repository contains code and resources for learning Java. The topics covered include Object-Oriented Programming (OOP), Interfaces, Lambda Expressions, and more.
Learning Java
This repository contains code and resources for learning Java. The topics covered include Object-Oriented Programming (OOP), Interfaces, Lambda Expressions, and more.
The programs in this repository are written while following the YouTube series on Java by CodeWithHarry.
Structure
| # | Topic |
|---|---|
| 0. | Creating Java Project |
| 1. | Notes & Cheatsheet |
| 2. | Hello World |
| 3. | Structure of a Java Program |
| 4. | Input |
| 5. | Marks Percentage Calculator |
| 6. | Strings |
| 7. | Switch Case |
| 8. | Arrays |
| 9. | Methods |
| 10. | Method Overloading |
| 11. | VarArgs |
| 12. | Recursion |
| 13. | OOPs |
| 14. | Abstract Class and Methods |
| 15. | Interfaces |
| 16. | Packages |
| 17. | Access Modifiers |
| 18. | Threads |
| 19. | Exceptions |
| 20. | Collections Framework |
| 21. | JavaDocs |
| 22. | Annotations |
| 23. | Lambda Expressions and Anonymous Classes |
| 24. | Generics |
| 25. | File Handling |
Getting Started
To get started with the code in this repository, you will need to have Java installed on your computer
Once you have Java installed, you can clone this repository to your local machine using the following command:
git clone https://github.com/Hardvan/Learning-Java.git
Running the Code
To run the code in this repository, navigate to the directory containing the code you want to run and use the javac command to compile the code.
For example:
cd Learning-Java/HelloWorld
javac HelloWorld.java
Once the code is compiled, you can use the java command to run it.
For example:
java HelloWorld