摘要:
public int compareTo( NumberSubClass referenceName ) 如果指定的数与参数相等返回 0 如果指定的数小于参数返回 -1 如果指定的数大于参数返回 1。 public class Test { public static void main(Strin 阅读全文
摘要:
如调用时 Computuer com = new Computer ( ) ; Flash flash = new Flash ( ) ; com.transform(flash); public void transform (USB usb){ //此时相当于 USB usb = new Fla 阅读全文