add (1) ... Conversely, if you can only put items into the collection, it's okay to take a collection of Object s and put String s into it: in Java there is List<?
確定! 回上一頁