我想创建一个ArrayList对象来使用集合接口。但是我的代码有一个问题。上面写着 I use checked and unsafe operation, please use -Xlint: unchecked to restart compile。 我想知道如何解决这个问题。 下面是我的java代码: import java.util.*; public static void main(String[] args) {
ArrayList<String> collection1 = new A