标签:har add sys public oid ast integer nta log
1 import java.util.ArrayList; 2 import java.util.List; 3 4 public class Solution { 5 /*String ann(int numbers, String charact){ 6 String s = charact.length(); 7 if (s.contains(c)){ 8 9 } 10 }*/ 11 public static void main(String[] args){ 12 //以下程序片段报错: java.lang.ClassCastException 13 14 /*List<Integer> li = new ArrayList<>(); 15 li.add(6); 16 li.add(9); 17 List list = li; 18 List<String> ls = list; 19 System.out.println(ls.get(1));*/ 20 } 21 }
标签:har add sys public oid ast integer nta log
原文地址:http://www.cnblogs.com/slhs/p/7722003.html