Java examples for java.lang:Object
Returns an empty object array.
/*/*from w w w . ja va2s. c om*/ * Copyright (c) 2015-2016 QuartzDesk.com. * Licensed under the MIT license (https://opensource.org/licenses/MIT). */ //package com.java2s; public class Main { public static void main(String[] argv) throws Exception { System.out.println(java.util.Arrays.toString(emptyArray())); } /** * Empty array. */ private static final Object[] EMPTY_ARRAY = new Object[] {}; /** * Returns an empty object array. * * @return an empty object array. */ public static Object[] emptyArray() { return EMPTY_ARRAY; } }