Java String Sub String subString(String parentStr, String startStr, String endStr)

Here you can find the source of subString(String parentStr, String startStr, String endStr)

Description

sub String

License

Open Source License

Declaration

public static String subString(String parentStr, String startStr, String endStr) 

Method Source Code

//package com.java2s;

public class Main {

    public static String subString(String parentStr, String startStr, String endStr) {
        return parentStr.substring(parentStr.indexOf(startStr) + startStr.length(), parentStr.indexOf(endStr));
    }//from www  . j a va2  s .c o  m
}

Related

  1. substring(String input, int maxLength)
  2. subString(String input, String startStr, String endStr)
  3. subString(String name)
  4. substring(String origin, int len)
  5. subString(String original, String regex)
  6. substring(String S, int beginIndex, int endIndex)
  7. substring(String s, int beginIndex, int endIndex)
  8. substring(String s, int i, String substring, int direction)
  9. subString(String s, int length)