Java Programs
Java programs
Basic
Number Pattern
- Floyd’s triangle Number pattern using nested for in Java
- Floyd’s triangle number pattern Using nested while loop in Java
- Reverse order triangle number patterns in Java language
- Pyramid triangle number pattern using Nested for loop in Java
- Inverted Pyramid number pattern in Java
- Java code to triangle number pattern
- Generate Double pyramid number pattern in Java
- Diamond number pattern in Java language
- Java program to display diamond number pattern using while loop
- Java program to integrated pyramid number pattern in Java using while loop
star pattern
- Java Program to print star pyramid pattern
- Java code to Floyd’s triangle star pattern
- Java code to hollow triangle pattern
- Java code to hollow Pyramid pattern
- Java code to display patterns using do-while loop
- Java code to display diamond star pattern
- Java program to display hollow diamond star pattern
- Hollow Pyramid pattern in Java using nested while loop
- Hollow Triangle pattern in Java using nested while loop
- Print Double pyramid star pattern in Java
- Java program to integrated triangle pattern using for loop
- Display integrated pyramid star pattern in Java using while loop
- Java program to print combined pyramid pattern
- Java program to print combined pyramid pattern using while loop
- Display solid rectangle or square star pattern in Java
- Display Hollow rectangle or square star pattern in Java
Alphabet pattern
- Java code to display triangle alphabet pattern
- Java code to display alphabet pyramid pattern
- Java code to triangle alphabet pattern using while loop
- Alphabet Pyramid pattern in Java using while loop
- Alphabet triangle pattern using do-while loop in Java
Binary pattern
Multiplication
- Java program to display the multiplication table
- Java program to multiply two numbers
- Java program to multiply to numbers using the method
- Java code to multiplication table using the array
- Find the product of two numbers using recursion in Java
- Java program to multiply two numbers without using arithmetic operator
Addition
- Java program sum of two numbers
- Java program to sum two number using method
- Use of Java program to find the sum of two numbers using recursion
- Java code to Addition Subtraction Multiplication and division
- Java Program to calculate the sum of odd and even numbers
- Java Program to calculate the sum of odd and even numbers in an array
- Java program to find the sum of natural numbers
- Java program to calculate the sum of natural numbers using recursion
- Java program to compute the sum of digits in a given number
- Java program to add two numbers without using arithmetic operators
Calculations
- Java program to calculate the average of an array
- Java program to calculate the sum of elements of an array
- Java code to calculate electricity bill
- Java code to calculate electricity bill using java method
- Java code to calculate factorial of A number
- Java code to calculate factorial of a number using recursion
- Java Program to calculate the power of a number using recursion
- Java code to calculate the average of odd and even numbers in an array
- Calculate Average of odd and even numbers in Java
Find elements
- Program to find the largest number among the three numbers in Java
- program to find the smallest among the three numbers in Java
- Program to find the smallest and largest number in three numbers in Java
- Java code to find the largest and smallest elements of an array
- Java code to find the largest elements of an array
- Java code to find the smallest elements of an array
- Java code to find middle number among three numbers
- Java program find largest of three numbers using method
- Java program find the smallest of three numbers using the method
- Java program to find the middle of three numbers using method
- Java code to find factorial using method
- Java program to find odd and even numbers using switch statements
Check elements
- Java code to check whether a number is even or odd
- Java code to check a number is even or odd using method
- Java code to display all even and odd number from 1 to n
- Java program to separate even and odd number from an array
- Java code to display even and odd numbers without if statements
- Java program to display even and odd numbers in the given range
- Java program to display all odd and even numbers 1 to n with label
- Java program to check whether a number is positive or Negative or Zero
- Example program to check whether the number is prime or not in Java
- 5 ways to check whether the number is Even or odd in Java
String manipulation
Java code to reverse the string
Java program to count the total number of characters in the given string
Java program to count total words in the given string
Number manipulation
Java code to reverse a number using loops
Alphabets
Java program to check vowel or consonant using switch case
Program to count upper case or lower case Alphabets in the given string
Java program to count the total number of character including space of the given string
Program to count vowel or consonant of the given string using ASCII value
Program to count vowel or consonant of the given string
Check whether the given Alphabets is upper or lower case
Program for display all Alphabets using ASCII value in Java
Program for display all Alphabets using loops in Java
Program for display all Alphabets between given range in Java
Program to check whether given Alphabets is vowel or consonants
Java programming code to check whether the given character is Alphabets or not