在什么情况下
new ArrayList<>()
new ArrayDeque<>()
new LinkedList<>()
在List,Queue,Stack,Deque接口可以这样加入对象吗?
在Map,Set接口下
newArrayList<>(IntNode)
new ArrayDeque<>(IntNode)
new LinkedList<>(IntNode)
这样可以这样加入对象吗?
把while改成for你会吗?
把while里面的条件改成&&或者||你会吗?
在什么情况下
new ArrayList<>()
new ArrayDeque<>()
new LinkedList<>()
在List,Queue,Stack,Deque接口可以这样加入对象吗?
在Map,Set接口下
newArrayList<>(IntNode)
new ArrayDeque<>(IntNode)
new LinkedList<>(IntNode)
这样可以这样加入对象吗?
把while改成for你会吗?
把while里面的条件改成&&或者||你会吗?