下面五条语句中,错误的有_______________________________________________。 (1)ArrayList<String> lists = new ArrayList<String>(); (2)ArrayList<Object> lists = new ArrayList<String>(); (3)ArrayList<String> lists = new ArrayList<Object>(); (4)ArrayList<String> lists = new ArrayList(); (5)ArrayList lists = new ArrayList<String>();
时间: 2023-06-02 14:06:24 浏览: 126
04_尚硅谷_书城项目_分页_王振国 - 课堂笔记1
错误的语句是:(2)ArrayList<Object> lists = new ArrayList<String>(),(3)ArrayList<String> lists = new ArrayList<Object>(),(4)ArrayList<String> lists = new ArrayList()和(5)ArrayList lists = new ArrayList<String>()。
阅读全文