Java String Sub String substringAfterFirstIndex(String value)

Here you can find the source of substringAfterFirstIndex(String value)

Description

Omits the first character and returns the remaining string.

License

Open Source License

Parameter

Parameter Description
value The string to be split.

Return

The extracted string.

Declaration

public static String substringAfterFirstIndex(String value) 

Method Source Code

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

public class Main {
    /**/*from   w w w  .ja v a  2  s  . c  o m*/
     * Omits the first character and returns the remaining string.
     *
     * @param value The string to be split.
     * @return The extracted string.
     */
    public static String substringAfterFirstIndex(String value) {
        if (null == value || value.isEmpty()) {
            return "";
        }
        return value.substring(1);
    }
}

Related

  1. substringAfter(String string, String delimiter)
  2. substringAfter(String template, String toFind, String defaultTo)
  3. substringAfter(String text, int index)
  4. substringAfter(String text, String after)
  5. substringAfter(String value, char delim)
  6. substringAfterIfExist(String source, String rev)
  7. subStringAfterIgnoreCase(String str, String separator, Integer num)
  8. substringAfterLast(final String str, final String separator)
  9. substringAfterLast(final String str, final String separator)