Java program for Addition, Subtraction, Multiplication and Division. Here we will discuss the most common mathematical operations such as addition, subtraction, multiplication and division In java. The 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 »Author Archives: Java Tutor
Left Arrow Star Pattern Java Program – Patterns
Java program to print Left Arrow star pattern program. We have written below the print/draw Left Arrow asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we have added compiler so that you can execute the below codes – List of Complete Pattern Programs in Java here. Print Left ...
Read More »Perfect Number In Java Program – 3 Ways | Programs
Java program to check a perfect number or not. The following program has been written in 3 different ways to check whether the given number is a perfect number or not. The compiler is also added so that you can execute the program yourself, along with sample outputs citing few examples. The methods used are: Print using While Loop. Print ...
Read More »Java Program Sum Of digits Of A Number | Programs
Java program to calculate the 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. The compiler has been added so that you can execute the program yourself, alongside suitable examples and sample outputs. The methods as mentioned above are: ...
Read More »Linear Search In Java Program – 2 Simple 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 »QuickSort Java – Algorithm | 2 Simple Ways
Java algorithm to implement quick sort. In this topic, we will discuss the various methods by which a quick sort algorithm/Program can be done using Array & We have added compiler to each program along with sample outputs explaining a few examples. For More Java sortings you can visit here, The methods used here are: Quick Sort Algorithm – Using ...
Read More »Hollow Right Triangle Star Pattern Java Program
Java program to print Hollow right triangle star pattern program – We have written below the print/draw Hollow right triangle asterisk/star pattern program in four different ways with sample example and output, check it out. At the end of the program, we have added compiler such that you can execute the below codes. Using For Loop Using While Loop Using Do ...
Read More »Java Program To Check Leap Year Or Not – 4 Ways
Java Program to find if a year is a leap or not. Here, we see the various methods to find out whether a year is Leap or not in Java In 5 different ways. Soon Compiler is added so that you can execute the program yourself, along with suitable examples and sample outputs. The methods used in this case are: ...
Read More »C Program To Find Maximum Between Three Numbers | C Programs
C Program to find maximum between three numbers – In this article, we will detail in on the numerous means to find maximum between three numbers in C programming. Suitable examples and sample programs have also been added so that you can understand the whole thing very clearly. The compiler has also been added with which you can execute it ...
Read More »C Program To Check If Alphabet, Digit or Special Character | C Programs
C program to check for an alphabet, digit or special character – In this article, we will detail in on the standard method of determining whether any character is an alphabet, digit or a special character. Suitable examples and sample programs have also been added so that you can understand the whole thing very clearly. The compiler has also been ...
Read More »