public static String hypenToCamelNotation(String str){
  if (isEmpty(str))   return str;
  StringBuilder sb=new StringBuilder();
  int len=str.length();
  char c;
  for (int i=0; i < str.length(); i++) {
    c=str.charAt(i);
    if (c == '-') {
      if (len > ++i)       sb.append(Character.toUpperCase(str.charAt(i)));
    }
 else     sb.append(c);
  }
  return sb.toString();
}

public static String hypenToCamelNotation ( String str ) { if ( isEmpty ( str ) ) return str ; StringBuilder sb = new StringBuilder ( ) ; int len = str . length ( ) ; char c ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) { c = str . charAt ( i ) ; if ( c == '-' ) { if ( len > ++ i ) sb . append ( Character . toUpperCase ( str . charAt ( i ) ) ) ; } else sb . append ( c ) ; } return sb . toString ( ) ; }
translate a string in hypen notation to a string in camel notation example : hello - world - > helloworld
