This repository contains basic Java programs and examples covering various concepts of object-oriented programming and fundamental Java topics. It serves as a beginner's guide to Java programming. 📖🎨
Java has two categories in which data types are segregated
Primitive Data Type: such as boolean, char, int, short, byte, long, float, and double
Non-Primitive Data Type or Object Data type: such as String, Array, etc.
Primitive data are only single values and have no special capabilities. There are 8 primitive data types. They are depicted below in tabular format below as follows:
The Reference Data Types will contain a memory address of variable values because the reference types won’t store the variable value directly in memory. They are strings, objects, arrays, etc.
ArrayList.java
📑: Demonstrates the usage of theArrayList
class in Java.Arrays.java
📑: Contains examples related to arrays in Java.ArraysProblems.java
📑: Solves problems related to arrays using Java.CGPA.java
📑: Calculates and displays the CGPA (Cumulative Grade Point Average) based on the given inputs.Changing_The_Elements_In_Array.java
📑: Modifies the elements of an array based on certain conditions.DetectInteger.java
📑: Detects whether a given input is an integer or not.Github.java
📑: Interacts with the GitHub API using Java to perform various operations.Greet.java
📑: Displays a greeting message on the console.If_Else_Switch.java
📑: Demonstrates the usage of if-else and switch statements in Java.InputTaking.java
📑: Takes user input and displays it on the console.JavaRecursion.java
📑: Illustrates recursion in Java with example programs.Km_To_M.java
📑: Converts distance in kilometers to meters.MultiDimensional_Array.java
📑: Deals with multi-dimensional arrays in Java.MainTwo.java
📑: Contains the main method and serves as the entry point for the program.MarkSheet.java
📑: Calculates the marks and grade of a student based on the given inputs.MethodOverloading.java
📑: Demonstrates method overloading in Java.NonStaticMethod.java
📑: Illustrates the usage of non-static methods in Java.Practiceset.java
📑: Provides a set of practice problems to enhance Java programming skills.Recursion_And_Methods_Problem.java
📑: Solves recursion and method-related problems using Java.StaticMethod.java
📑: Illustrates the usage of static methods in Java.String_Methods.java
📑: Demonstrates various string methods in Java.String_Problem.java
📑: Solves string-related problems using Java.VariableArguments.java
📑: Explains the usage of variable arguments in Java methods.arrays_problems.class
📑: Compiled version ofarrays_problems.java
file.changing.class
📑: Compiled version ofchanging.java
file.loops.java
📑: Contains examples related to loops in Java.loopsImpl.java
📑: Implements different types of loops in Java.methods.java
📑: Contains examples of different types of methods in Java.
Contributions are welcome! If you find any issues or want to enhance the repository, feel free to submit a pull request or raise an issue. Your contributions, whether it's fixing a bug, adding new features, or improving documentation, are greatly appreciated! 🙌🏻💎
To contribute to this repository, follow these steps:
- Fork the repository. 🍴
- Create a new branch for your feature or bug fix. 🌱
- Make your changes and ensure they are properly tested. 🧪
- Commit your changes and push them to your forked repository. 🔃
- Submit a pull request with a detailed description of your changes. 📤
If you want to contact me, you can reach me through below handles.