Java String Upper Case toUpperCase(String s, int start, int end)

Here you can find the source of toUpperCase(String s, int start, int end)

Description

Upper substring assigned length.

License

Open Source License

Parameter

Parameter Description
s a parameter
start a parameter
end a parameter

Declaration

public static String toUpperCase(String s, int start, int end) 

Method Source Code

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

public class Main {
    /**//from w  w w .j a v  a2  s  .  c o m
     * Upper substring assigned length.
     * 
     * @param s
     * @param start
     * @param end
     * @return
     */
    public static String toUpperCase(String s, int start, int end) {
        int length = s.length();
        if (length >= end) {
            s = s.substring(0, start) + s.substring(start, end).toUpperCase() + s.substring(end, length);
        }
        return s;
    }
}

Related

  1. toUpperCase(String s)
  2. toUpperCase(String s)
  3. toUpperCase(String s)
  4. toUpperCase(String s)
  5. toUpperCase(String s)
  6. toUpperCase(String source)
  7. toUpperCase(String src)
  8. toUpperCase(String str)
  9. toUpperCase(String str)