Java Second Get getSecondToLastIndexOf(String string, char character)

Here you can find the source of getSecondToLastIndexOf(String string, char character)

Description

get Second To Last Index Of

License

LGPL

Declaration

public static int getSecondToLastIndexOf(String string, char character) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static int getSecondToLastIndexOf(String string, char character) {
        String temp = string.substring(0, string.lastIndexOf(character));
        return temp.lastIndexOf(character);
    }//from  www .  j a  v a2  s . c om
}

Related

  1. getSecondsText(long seconds)
  2. getSecondsToHHMMSS(double seconds)
  3. getSecondsToMMSS(double seconds)
  4. getSecondTime()
  5. getSecondTime(String time)
  6. getSecondVersion(String buildId)
  7. getSYNTimeSeconds()
  8. getTextBeforeFirstAndSecondColumns(String s)
  9. getTimeAsSeconds(String value)