0% found this document useful (0 votes)
23 views

Array Program

The document provides examples of basic Java programs covering topics like Fibonacci series, prime numbers, palindromes, factorials, random number generation and more. It then lists Java array programs for tasks like copying arrays, finding frequencies, sorting, and more. Further sections cover Java matrix, string, and searching/sorting programs.

Uploaded by

Dr.V.P Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Array Program

The document provides examples of basic Java programs covering topics like Fibonacci series, prime numbers, palindromes, factorials, random number generation and more. It then lists Java array programs for tasks like copying arrays, finding frequencies, sorting, and more. Further sections cover Java matrix, string, and searching/sorting programs.

Uploaded by

Dr.V.P Gupta
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Java Basic Programs

1) Fibonacci Series in Java


2) Prime Number Program in Java
3) Palindrome Program in Java
4) Factorial Program in Java
5) Armstrong Number in Java
6) How to Generate Random Number in Java
7) How to Print Pattern in Java
8) How to Compare Two Objects in Java
9) How to Create Object in Java
10) How to Print ASCII Value in Java

Java Array Programs

1) Java Program to copy all elements of one array into another array
2) Java Program to find the frequency of each element in the array
3) Java Program to left rotate the elements of an array
4) Java Program to print the duplicate elements of an array
5) Java Program to print the elements of an array
6) Java Program to print the elements of an array in reverse order
7) Java Program to print the elements of an array present on even position
8) Java Program to print the elements of an array present on odd position
9) Java Program to print the largest element in an array
10) Java Program to print the smallest element in an array
11) Java Program to print the number of elements present in an array
12) Java Program to print the sum of all the items of the array
13) Java Program to right rotate the elements of an array
14) Java Program to sort the elements of an array in ascending order
15) Java Program to sort the elements of an array in descending order
16) Java Program to Find 3rd Largest Number in an array
17) Java Program to Find 2nd Largest Number in an array
18) Java Program to Find Largest Number in an array
19) Java to Program Find 2nd Smallest Number in an array
20) Java Program to Find Smallest Number in an array
21) Java Program to Remove Duplicate Element in an array
22) Java Program to Print Odd and Even Numbers from an array
23) How to Sort an Array in Java

Java Matrix Programs


1) Java Matrix Programs
2) Java Program to Add Two Matrices
3) Java Program to Multiply Two Matrices
4) Java Program to subtract the two matrices
5) Java Program to determine whether two matrices are equal
6) Java Program to display the lower triangular matrix
7) Java Program to display the upper triangular matrix
8) Java Program to find the frequency of odd & even numbers in the given matrix
9) Java Program to find the product of two matrices
10) Java Program to find the sum of each row and each column of a matrix
11) Java Program to find the transpose of a given matrix
12) Java Program to determine whether a given matrix is an identity matrix
13) Java Program to determine whether a given matrix is a sparse matrix
14) Java Program to Transpose matrix

Java String Programs


1) Java Program to count the total number of characters in a string
2) Java Program to count the total number of characters in a string 2
3) Java Program to count the total number of punctuation characters exists in a
String
4) Java Program to count the total number of vowels and consonants in a string
5) Java Program to determine whether two strings are the anagram
6) Java Program to divide a string in 'N' equal parts.
7) Java Program to find all subsets of a string
8) Java Program to find the longest repeating sequence in a string
9) Java Program to find all the permutations of a string
10) Java Program to remove all the white spaces from a string
11) Java Program to replace lower-case characters with upper-case and vice-versa
12) Java Program to replace the spaces of a string with a specific character
13) Java Program to determine whether a given string is palindrome
14) Java Program to determine whether one string is a rotation of another
15) Java Program to find maximum and minimum occurring character in a string
16) Java Program to find Reverse of the string
17) Java program to find the duplicate characters in a string
18) Java program to find the duplicate words in a string
19) Java Program to find the frequency of characters
20) Java Program to find the largest and smallest word in a string
21) Java Program to find the most repeated word in a text file
22) Java Program to find the number of the words in the given text file
23) Java Program to separate the Individual Characters from a String
24) Java Program to swap two string variables without using third or temp variable.
25) Java Program to print smallest and biggest possible palindrome word in a given
string

Java Searching and Sorting Programs


1) Linear Search in Java
2) Binary Search in Java
3) Bubble Sort in Java
4) Selection Sort in Java
5) Insertion Sort in Java

You might also like