Java String Capitalize capitalize(String inputString)

Here you can find the source of capitalize(String inputString)

Description

capitalize

License

Open Source License

Declaration

public static String capitalize(String inputString) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String capitalize(String inputString) {

        String cap = inputString.toLowerCase().substring(0, 1).toUpperCase();
        cap += inputString.toLowerCase().substring(1);
        return cap;
    }/*from  w ww .j  a  v  a  2 s  .  c om*/
}

Related

  1. capitalize(String input)
  2. capitalize(String input)
  3. capitalize(String input)
  4. capitalize(String input)
  5. capitalize(String input)
  6. capitalize(String line)
  7. capitalize(String membername)
  8. capitalize(String message)
  9. capitalize(String name)