Java Basic Programs
Java Basic Programs
27) Java Program to Find Square Root of a Number Without sqrt Method
31) Java Program to Find Smallest of Three Numbers Using Ternary Operator
1) Java Program to copy all elements of one array into another array
12) Java Program to print the sum of all the items of the array
22) Java Program to Print Odd and Even Numbers from an array
8) Java Program to find the frequency of odd & even numbers in the given matrix
10) Java Program to find the sum of each row and each column of a matrix
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
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
15) Java Program to find maximum and minimum occurring character in a string
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
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
3) Java program to create a singly linked list of n nodes and count the number of nodes
4) Java program to create a singly linked list of n nodes and display it in reverse order
5) Java program to delete a node from the beginning of the singly linked list
6) Java program to delete a node from the middle of the singly linked list
7) Java program to delete a node from the end of the singly linked list
9) Java program to find the maximum and minimum value node from a linked list
10) Java Program to insert a new node at the middle of the singly linked list
11) Java program to insert a new node at the beginning of the singly linked list
12) Java program to insert a new node at the end of the singly linked list
13) Java program to remove duplicate elements from a singly linked list
2) Java program to create a Circular Linked List of N nodes and count the number of nodes
3) Java program to create a Circular Linked List of n nodes and display it in reverse order
4) Java program to delete a node from the beginning of the Circular Linked List
5) Java program to delete a node from the end of the Circular Linked List
6) Java program to delete a node from the middle of the Circular Linked List
7) Java program to find the maximum and minimum value node from a circular linked list
8) Java program to insert a new node at the beginning of the Circular Linked List
9) Java program to insert a new node at the end of the Circular Linked List
10) Java program to insert a new node at the middle of the Circular Linked List
11) Java program to remove duplicate elements from a Circular Linked List
13) Java program to sort the elements of the Circular Linked List
3) Java program to create a doubly linked list of n nodes and count the number of nodes
4) Java program to create a doubly linked list of n nodes and display it in reverse order
6) Java program to delete a new node from the beginning of the doubly linked list
7) Java program to delete a new node from the end of the doubly linked list
8) Java program to delete a new node from the middle of the doubly linked list
9) Java program to find the maximum and minimum value node from a doubly linked list
10) Java program to insert a new node at the beginning of the Doubly Linked list
10) Java program to insert a new node at the end of the Doubly Linked List
12) Java program to insert a new node at the middle of the Doubly Linked List
13) Java program to remove duplicate elements from a Doubly Linked List
16) Java program to sort the elements of the doubly linked list
1) Java Program to calculate the Difference between the Sum of the Odd Level and the Even Level Nodes
of a Binary Tree
2) Java program to construct a Binary Search Tree and perform deletion and In-order traversal
9) Java program to find the nodes which are at the maximum distance in a Binary Tree
11) Java program to find the sum of all the nodes of a binary tree
12) Java program to find the total number of possible Binary Search Trees with N keys
13) Java program to implement Binary Tree using the Linked List