Java String Uncapitalize unCapitalize(String data, int pos)

Here you can find the source of unCapitalize(String data, int pos)

Description

un Capitalize

License

Open Source License

Declaration

public static String unCapitalize(String data, int pos) 

Method Source Code

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

public class Main {
    private StringBuffer sb = null;

    public static String unCapitalize(String data, int pos) {
        StringBuffer buf = new StringBuffer(data.length());
        buf.append(data.substring(0, pos - 1));
        buf.append(data.substring(pos - 1, pos).toLowerCase());
        buf.append(data.substring(pos, data.length()));
        return buf.toString();
    }//from  ww  w  .ja  v a 2s.c  o m

    public void append(String str) {
        sb.append(str);
    }
}

Related

  1. uncapitalize(final CharSequence sequence)
  2. uncapitalize(final String s)
  3. uncapitalize(final String str)
  4. uncapitalize(final String str)
  5. uncapitalize(final String str)
  6. uncapitalize(String input)
  7. uncapitalize(String name)
  8. uncapitalize(String name)
  9. uncapitalize(String s)