- Single Linked List Program in Java
The Single Linked List Program in Java creates a node, inserts a node, and prints the linked list.
- Program to check whether the number is palindrome or not.
Here, we have a basic program example to check if the number is palindrome or not using different languages. A palindrome is a word, number, phrase, or other sequence of…
- A program in Java to check if a file or directory has read and write permission or not.
In the Java program to check if a file or directory has read and write permission or not, we need to import java.io.file library first which contains all the built-in…
- A program in Java to calculate the average value of array elements.
In the above Java program to calculate the average value of array elements, we will loop through each element using for loop and then adding and storing the value in…
- A program in Java to convert a Roman number to an integer number.
In the above Java program to convert a Roman number to an integer number, we will use if-else ladder. Sample Output: Input a roman value : XVIICM Roman Number: XVIICM…
- A program in Java to replace all the vowels in a string with a specified character.
In the above Java program to replace all the vowels in a string with a specified character we created a function named validate() and then with the help of a…
- Java Program to sort an array using Merge sort .
To understand the above Java program to sort an array of given integers using Merge sort Algorithm, we need to understand what is merge sort. Merge sort is an O…
- Java program to display the current date and time.
In the above Java program to display the current date and time, we have used built-in classes and method to fetch the system date and then passed the month value…
- A program in Java to check whether a string is a valid password or not.
In the above Java program to check whether a string is a valid password or not, we created a method is_Valid_Password() and called it into the main method. inside the…
- A program in Java to display the first 50 pentagonal numbers.
In the above Java program to display the first 50 pentagonal numbers, we first need to understand what is pentagon? A pentagonal number is a figurative number that extends the…
- Java program to count all vowels in a string.
In the above Java program to count all vowels in a string we use built-in function count() and with the help of a counter variable, calculate each and every vowel….
- Java program to display the pattern in a right angled triangle with a number.
In the above Java program to print a right angles triangle from a number, we have use nested loop where i is row and j is column in that row….