Skip to content

Instantly share code, notes, and snippets.

@LazLondon
LazLondon / StringUtility.java
Last active September 15, 2016 09:03
Getting the position and length of the longest consecutive repeating character in a form of "position,length" of the sample passed to the constructor.
package com.lazlondon.interview;
/**
* Created by Laz on 10/09/2016.
*/
import net.jcip.annotations.ThreadSafe;
/**
* Utility class for String manipulation.