Program: Java Code to find longest character sequence in a random String.

4

Problem: Write a Java code to find the longest sequence of consecutive repetitive characters in a String. For example if a String is “aaaabbbbcccchhhhiiiiibbbbbbbbbccccccc” then your code should return the length of longest character sequence as well

Read this post on 5balloons.info


Tushar Gugnani

blogs from Nagpur