Set is
Set myset = new HashSet()
You make it like this, right? How do I make a list?
list java collections
List myList = new ArrayList();
List<MyType> myList = new ArrayList<MyType>();
Just give the example above and the general type below, and when you make a list, you can put the data type in the MyType part and write it down.
© 2024 OneMinuteCode. All rights reserved.