Here you can find the source of length(String arg)
static final public double length(String arg)
//package com.java2s; //License from project: Apache License public class Main { static final public double length(String arg) { return arg != null ? arg.length() : 0; }//from w w w. j a v a 2 s . c om }