Java String Sub String subStringAfterLastSymbol(String inStr, char symbol)

Here you can find the source of subStringAfterLastSymbol(String inStr, char symbol)

Description

sub String After Last Symbol

License

Open Source License

Declaration

public static String subStringAfterLastSymbol(String inStr, char symbol) 

Method Source Code

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

public class Main {
    public static String subStringAfterLastSymbol(String inStr, char symbol) {
        return inStr.substring(inStr.lastIndexOf(symbol) + 1);
    }/*from  ww w.j  a  v  a 2 s  . c o  m*/
}

Related

  1. substringAfterLast(String str, String pattern)
  2. substringAfterLast(String str, String separator)
  3. substringAfterLast(String str, String separator)
  4. substringAfterLast(String string, String delimiter)
  5. substringAfterLast(String text, char after)
  6. substringAfterReturnAll(String str, String before)
  7. substringAndchopLastNewline(String text, int start_pos, int end_pos)
  8. subStringArray(String in[], int start, int end)
  9. substringBaseName(String baseName, int extraCharsNumber)