摘要:
生成能自动判别类型的Vector: 1 import java.util.*; 2 class Gopher { 3 private int gopherNumber; 4 Gopher(int i) { 5 gopherNumber = i; 6 } 7 void print(String msg) { 8 if(msg != null) 9 System.out.println(msg);10 System.out.println("Gopher number " + gopherNumber);11 }12 }13 class GopherTrap {14 stati 阅读全文