Java String Trim Left ltrim(String s)

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

Description

ltrim

License

Open Source License

Declaration

public static String ltrim(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static String ltrim(String s) {
        int i = 0;
        while (i < s.length() && Character.isWhitespace(s.charAt(i)))
            i++;//  w w  w .  j  a  v  a  2 s.  com
        return s.substring(i);
    }
}

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, char character)
  9. ltrim(String s, Character c)