Here you can find the source of length(Object[] buf)
static int length(Object[] buf)
//package com.java2s; //License from project: Apache License public class Main { static int length(Object[] buf) { return buf.length; }//from ww w . j a va2s . c o m }