标签:class stat turn pack nbsp ati rgs ack private
package com; public class Box <T>{ private T t; public T getT() { return t; } public void setT(T t) { this.t = t; } }
public static void main(String[] args) { Box<String> s=new Box<String>(); s.setT("Hello"); System.out.println(s.getT());; }
标签:class stat turn pack nbsp ati rgs ack private
原文地址:http://www.cnblogs.com/javaweb2/p/6636100.html