Category: String Programs

Java Program to Count Frequency of Character in String ( 4 Methods )

Java Program to Count Frequency of Character in String Write a Java Program to Count Frequency of Character in String. Here’s a Simple Program To Count Frequency of Character in String in Java Programming Language. Since there’s no pre-build function present in Java for calculating the occurrence of the characters or alphabets. Hence we need to

Java Program to Count frequency of each characters using Buffered Reader

Java Program to Count frequency of each characters using Buffered Reader Write a Java Program to Count frequency or occurrence of each characters using Buffered Reader.Finding characters frequency of a String means calculating the occurrence of  each alphabet present in the string. Since there’s no pre-build function present in Java for calculating the occurrence of the characters

Write a Java Program to Count frequency or occurrence of all characters in string

Java Program to Count occurrence or frequency of all characters in string Write a Java Program to Count frequency or occurrence of all the characters present in the string.Finding characters frequency of a String means calculating the occurrence of  each alphabet present in the string. Since there’s no pre-build function present in Java for calculating

Java Program to find Lexicographically smallest and largest substring of length k

Java Program to find Lexicographically smallest and largest substring of length k Write a Java Program to find Lexicographically smallest and largest substring of length k. This problem is derived from the String section of Hackerrank in java. I like this problem, so i decided to put my solution on my site.Below is the question and solution