Java String Trim Left lTrim(String s)

Here you can find the source of lTrim(String s)

Description

Elimina gli spazi a sx della stringa

License

Apache License

Declaration

public static String lTrim(String s) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*w  w  w. j  a v  a  2 s  . c  om*/
     * Elimina gli spazi a sx della stringa
     */
    public static String lTrim(String s) {
        if (s == null) {
            return null;
        } else {
            char c[] = s.toCharArray();
            int i = 0;
            while (i < s.length() && c[i] == ' ') {
                i++;
            }
            return s.substring(i, s.length());
        }
    }
}

Related

  1. ltrim(String s)
  2. ltrim(String s)
  3. ltrim(String s)
  4. ltrim(String s)
  5. ltrim(String s)
  6. ltrim(String s)
  7. ltrim(String s)
  8. ltrim(String s)
  9. ltrim(String s)