文件說,在這一節The static type second formal parameter of the add method is String, but this method is called with an actual parameter of a different type, Integer.
的add(int,Object)
叫上l
其靜態類型是List<Number>
作爲醫生說的最後一段。有人能解釋爲什麼靜態類型是String
,看起來是Number
。
感謝, 喬治
堆污染