Here you can find the source of ltrim(String source)
Parameter | Description |
---|---|
source | a parameter |
public static String ltrim(String source)
//package com.java2s; //License from project: LGPL public class Main { /**//from w w w .j av a 2 s .c o m * remove leading whitespace * * @param source * @return string without leading whitespace */ public static String ltrim(String source) { return source.replaceAll("^\\s+", ""); } }