How to capitalize the given input word into Camel Case "camelCase" Naming Convention but maintain the letter which are continuously in upper case.

In below example the word "HelloErrorConsoleServerURL" contains letter "H" as a capital letter followed by the lower case letters "ello" but the letter "U" followed by letters "RL" are in capital letters, which are required to remain same.

For this purpose a method named decapitalize in provided in an inbuilt Introspector class available in the java.beans package by JDK.

package com.errorConsole.string.formatting;

import java.beans.Introspector;

public class DecapitalizeUtil {

	
	public static void main(String arg[]) {
		
		String inputWordStr = "HelloErrorConsoleServerURL";
		String outputWordStr = "";
		
		System.out.println("Input Word Str = " + inputWordStr);
		
		outputWordStr = Introspector.decapitalize(inputWordStr);
		
		System.out.println("\n\nOutput Word Str = " + outputWordStr);
		
	}
	
}

At the execution of above code the expected output is generated where letter "H" has changed from Capital to Small case but the three continuous letters "URL" remains same in the Capital case.

WordDecapitalizeOutput