下列选项中,哪个可以正确地定义一个泛型( )
A.ArrayList<String> list = new ArrayList<String>(); B.ArrayList list<String> = new ArrayList (); C.ArrayList list<String> = new ArrayList<String>(); D.ArrayList<String> list = new ArrayList ();正确答案A
下列选项中,哪个可以正确地定义一个泛型( )
A.ArrayList<String> list = new ArrayList<String>(); B.ArrayList list<String> = new ArrayList (); C.ArrayList list<String> = new ArrayList<String>(); D.ArrayList<String> list = new ArrayList ();正确答案A