Java String Sub String substring(String text, int begin, int end)

Here you can find the source of substring(String text, int begin, int end)

Description

substring

License

Open Source License

Declaration

public static String substring(String text, int begin, int end) 

Method Source Code

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

public class Main {
    public static String substring(String text, int begin, int end) {
        return text.substring(Math.min(text.length(), begin), Math.min(text.length(), end));
    }/*from  www . j  a  va2s  .c  o  m*/
}

Related

  1. substring(String string, int maxChars, String suffix)
  2. substring(String string, int start, int length)
  3. substring(String string, String beginning, String end)
  4. subString(String string, String inizio, String fine)
  5. substring(String subject, int start, int end)
  6. substring(String text, int start, int end)
  7. substring(String text, int startPos, int endPos)
  8. substring(String text, int startPos, int len)
  9. subString(String text, String leadingPart)