Here you can find the source of toUpperCase(String s, int start, int end)
Parameter | Description |
---|---|
s | a parameter |
start | a parameter |
end | a parameter |
public static String toUpperCase(String s, int start, int end)
//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; } }