Java String Camel Case camelCase(String in)

Here you can find the source of camelCase(String in)

Description

camel Case

License

Apache License

Declaration

public static String camelCase(String in) 

Method Source Code

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

public class Main {
    public static String camelCase(String in) {
        String s = "";
        String[] split = in.replace('_', ' ').split(" ");
        for (int i = 0; i < split.length; i++) {
            if (i == 0)
                s += split[i].toLowerCase();
            else/*from  w w  w.  j  a  v a  2  s.c  o m*/
                s += split[i].substring(0, 1).toUpperCase() + split[i].substring(1).toLowerCase();
        }
        return s;
    }
}

Related

  1. camelCase(final String text)
  2. camelCase(final String value, final String delim)
  3. camelCase(String column)
  4. camelCase(String content)
  5. camelCase(String in)
  6. camelCase(String input)
  7. camelCase(String inStr, int start, int end)
  8. camelCase(String key)
  9. camelCase(String name, boolean capitalize)