Java String Sub String substring(String _text, int _idx)

Here you can find the source of substring(String _text, int _idx)

Description

substring

License

Open Source License

Declaration

public static String substring(String _text, int _idx) 

Method Source Code

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

public class Main {

    public static String substring(String _text, int _idx) {
        if (_idx >= 0) {
            if (_idx < _text.length()) {
                return _text.substring(_idx);
            }/*from   w w  w.j av a2s .  c  o m*/
        }
        return "";
    }
}

Related

  1. substring(final String s, int start, int end)
  2. substring(final String s, int startIndex, int endIndex)
  3. substring(final String str, int start, int end)
  4. substring(final String string, int fromIndex, int toIndex)
  5. substring(final String text, final int position, final int length)
  6. substring(String baseString, int start, int end)
  7. subString(String input, char start, char end)
  8. substring(String input, int expectedLength)
  9. substring(String input, int maxLength)