Android String Sub String Get takeOutFirstChar(String input)

Here you can find the source of takeOutFirstChar(String input)

Description

take Out First Char

Declaration

public static String takeOutFirstChar(String input) 

Method Source Code

//package com.java2s;

public class Main {

    public static String takeOutFirstChar(String input) {
        if (input.charAt(0) == '#') {
            String re = input.substring(1, input.length());
            return re;
        }/*from w w  w. java 2 s. c o  m*/
        return input;
    }
}

Related

  1. replaceOnce(String source, String subject, String object)
  2. substring(String str, int toCount)
  3. substring(String str, int len, String more)
  4. substringFromLast(final String str, final String separator)
  5. substringToLast(final String str, final String separator)
  6. substring(String str, int srcPos, int specialCharsLength)
  7. substringAfter(String text, char c)
  8. substringAfterLast(String text, char separator)
  9. substringBefore(String text, char separator)