/* 来 自 时代Java - N o w J a v a . c o m*/
/**
* Copyright (c) 2010 Martin Geisse
*
* This file is distributed under the terms of the MIT license.
*/
//package com.nowjava;
public class Main {
public static void main(String[] argv) throws Exception {
Object[] a = new String[] { "1", "abc", "level", null,
"nowjava.com", "asdf 123" };
System.out.println(java.util.Arrays.toString(unsafeCastArray(a)));
}
/**
* Returns the argument, cast to type T[] in an unsafe way.
* @param <T> the static element type of the array type to cast to
* @param a the value to cast
* @return Returns the argument, cast to type T[].
*/
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。