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.