del Dot from a string At First - Android java.lang

Android examples for java.lang:String Starts or Ends

Description

del Dot from a string At First

Demo Code

public class Main{

    public static String delDotAtFirst(String source) {
        if (source == null) {
            return null;
        }// w w w . j  a va  2  s . c o  m
        if (source.startsWith(".")) {
            return source.substring(1, source.length());
        }
        return source;
    }

}

Related Tutorials