Here you can find the source of left(String var0, int var1)
public static String left(String var0, int var1)
//package com.java2s; //License from project: Open Source License public class Main { public static String left(String var0, int var1) { return var0 == null ? null : (var1 < 0 ? "" : (var0.length() <= var1 ? var0 : var0.substring(0, var1))); }/*from w ww. j a va 2 s. c o m*/ }