14 questions
Hi, everyone. Can I use any library when I coat with java?For example, if you have a problem with sorting, use Arrays.sort()Use Map = new TreeMap<>(Collections.reversOrder())). Is this not a pro...
ArrayList<String> places = new ArrayList<String>(); places.add(Buenos Aires); places.add(Córdoba); places.add(La Plata);For example, there is a source like this, and I want to reduce the i...
Map<String,String> test = new HashMap<String, String>{test:test,test:test};Is there a way to initialize HashMap like the code above? Is the code above grammatically correct?
I understand that there is no get method in Set for a reason, but please explain the reason.I think it's good to put elements in the set, but I don't know a good way to get a single item from there.So...
When you want to search for an array in reverse order, just turn it into a for statement, for (int i = nodes.size() - 1; i >= 0; i--) { final Node each = (Node) nodes.get(i); ... }You can do it lik...
I want to put int[] in the list, how do I do it?
Is there any method created in Java that separates the string into an array or list by comma?Or do I have to make the code myself?
Set is Set myset = new HashSet()You make it like this, right? How do I make a list?
There is a string ArrayList, but I want to erase the repeated string from this list. What should I do?
There are two ArrayLists, filelist and imgList. If each of these is H1.txt, it's related to e1.jpg.When I change the order of the imgList automatically, I want to change the order according to the fil...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.