StringUtil { public static String removePrefix( String str ) { int cut = 0; for ( int i = 0; i < str.toCharArray().length; i++ ) { char c = str.toCharArray()[i]; if ( Character.isUpperCase( c ) ) { cut = i; break; } } return str.substring( cut ); }  static String removePrefix( String str ); static String toCamelCase( String str ); static String[] splitCamelCase( String string ); static String toUpperCamelCase( String name );  }
@Test public void testPrefixRemoval() { String a = "abcCba"; assertEquals( "Cba", StringUtil.removePrefix( a ) ); a = "abc3Cba"; assertEquals( "Cba", StringUtil.removePrefix( a ) ); }