标签:pre stat print for static pack ring system eth
package com; public class GenericMethodTest { // 方法上的泛型 public static <E> void getArray(E[] e) { for (E e2 : e) { System.out.println(e2); } } public static void main(String[] args) { Integer a[] = { 1, 2, 3 }; String b[]={"a","b","c"}; P pp1=new P(); P pp2=new P(); P pp3=pp2; P [] p={pp1,pp2,pp3}; getArray(p); } } class P{ }
标签:pre stat print for static pack ring system eth
原文地址:http://www.cnblogs.com/javaweb2/p/6636085.html