Beginners Programs :

Author Archives: Java Tutor

GCD Of Two Numbers In Java – Programs | 5 Ways

Java program to find out the GCD between two numbers. Here, we will discuss the various methods to find out the GCD between two numbers. Also, we’ll learn how to calculate the GCD of n numbers. Soon Compiler has added to it so that you can execute the set of programs yourself. The methods as aforementioned are: Using Static Method ...

Read More »

Prime Number Java Program – 1 to 100 & 1 to N | Programs

Prime Number Java Program –  Java Program to Check Whether a Number is Prime or Not using different methods. Compiler has also been added so that you can execute the programs yourself, along side suitable examples and sample outputs added for each program. Also, we will see the method of how to find out prime numbers between 1 to n, ...

Read More »

Java Program For Addition, Subtraction, Multiplication, Division | Programs

Java program for Addition, Subtraction, Multiplication and Division. Here we will discuss about the most common mathematical operations such as addition, subtraction, multiplication and division In java. Compiler has been added as well so that you can execute the programs yourself, along with suitable examples and sample outputs. The programs as aforementioned are: Addition. Addition using Static Method. Subtraction. Multiplication. ...

Read More »

Java Program Sum Of digits Of A Number | Programs

Java program to calculate sum of digits of a number. Here we will discuss the various methods to calculate the sum of the digits of any given number with the help of Java Programs. Compiler has been added so that you can execute the program yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: Using For ...

Read More »

Java Program To Reverse An Array | Programs

Java program to reverse an array – We will discuss the various methods to reverse an array in Java. Compiler has been added so that you can execute the programs by yourself, alongside few suitable examples and sample outputs. The reverse an array Java program has been written in Two different ways here. Without Using Another Array Using Class Standard ...

Read More »

Java Program To Insert An Element In Array | Programs

Java program to insert element in array or at a specified position. We will discuss the couple of methods on how to insert element in an array at a specified position . Compiler has been added so that you can execute the programs yourself, alongside suitable examples and sample outputs added. The following program has been added in two different ...

Read More »

Linear Search In Java Program – 2 Ways | Programs

Java program for linear search – We will discuss the methods on how to carry out the linear search operation  in Java Compiler has been added so that you can execute the programs by yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: Linear Search – Using Array Linear Search – Using Recursion Linear Search In ...

Read More »

Java Program to Add Two Matrices – 4 Ways | Programs

Java program to add two matrices – The following Java Code will let you know how to perform two matrix addition using Java. Soon we will add compiler to execute the Program below the each method. We have written the Program in 3 Possible ways. Here it is, Using For Loop Using While Using Do-While Addition of two matrices can ...

Read More »

Selection Sort Java – Algorithm 2 Ways | JavaSorting

Implement Selection sort Java We will discuss the couple of methods to Implement Selection Sort In Java Algorithm. Compiler has been added so you can easily execute the given programs, alongside suitable examples and samples outputs added for Selection Sort In Java, For More Sorting Programs in Java Visit here. Using Array. Using Buffered Reader. Selection Sort Algorithm Java – Using ...

Read More »

Implement Bubble Sort Java – Algorithm | 2 Easy Ways

Bubble Sort in Java – We will discuss the different methods to Implement Bubble Sort in 2 Simple ways. Compiler has been added so that you easily execute the programs yourself, alongside suitable examples and sample outputs added to implement bubble sort – List of all sorting Programs In Java Program – Using Array. Program – Using Buffered Reader. Bubble Sort ...

Read More »