parameterized types and raw types for different classes
Using raw type warning occured, how to use par开发者_开发问答ameterized type for
List apa=(List)class1.method1(xx);
All the values present in the list are of String type.
List<String> apa = class1.method1(xx);
and specify return type of List<String> for method1 in the class definition.
If all present values are String means use like this,
List<String> apa = (List<String>)class1.method1(xx);
加载中,请稍侯......
精彩评论