Here you can find the source of lastIndexOfUCL(String value)
public static int lastIndexOfUCL(String value)
//package com.java2s; /******************************************************************************* * Copyright (c) 2012 Huygens ING./* w w w. j a va 2s . c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the GNU Public License v3.0 * which accompanies this distribution, and is available at * http://www.gnu.org/licenses/gpl.html * * Contributors: * Huygens ING - initial API and implementation ******************************************************************************/ public class Main { public static int lastIndexOfUCL(String value) { for (int i = value.length() - 1; i >= 0; i--) { if (Character.isUpperCase(value.charAt(i))) { return i; } } return -1; } }