Java program to find the count of vowels and consonants in a given input string. Remember a string in java can have several kind of characters.
In these java programs, learn to reverse the words of a string in Java without using api functions. We can reverse the words of string in two ways: Reverse each word’s characters but the position of word in string remain unchanged. Reverse the string word by word but each word’s characters remain unchanged. 1. Reverse […]
Learn to sort an array of strings alphabetically. In given java program, strings are given as input from console and after sorting – printed in the console.
Learn to swap two numbers in given two Java programs. First program uses a temporary variable while second program does not uses any temp variable.
Learn to write program to find first prime numbers using Java 8 Stream API, where N is any given input number to the application.