Java String Camel Case Format toCamelCase(String begin, String... parts)

Here you can find the source of toCamelCase(String begin, String... parts)

Description

to Camel Case

License

Apache License

Declaration

public static String toCamelCase(String begin, String... parts) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String toCamelCase(String begin, String... parts) {
        String name = begin.length() > 0 ? Character.toLowerCase(begin.charAt(0)) + begin.substring(1) : begin;

        for (String part : parts) {
            name += Character.toUpperCase(part.charAt(0)) + part.substring(1);
        }// w w  w.  j av  a 2  s. com
        return name;
    }
}

Related

  1. toCamelCase(final String string)
  2. toCamelcase(final String string)
  3. toCamelCase(final String string)
  4. toCamelCase(String anyCase, char wordMarker)
  5. toCamelCase(String argString)
  6. toCamelCase(String columnName)
  7. toCamelCase(String dashCase)
  8. toCamelCase(String id)
  9. toCamelCase(String in, boolean startWithUpper)