set tag

14 questions


1 answers
139 views
0
Why is there no get(int index) in java.util.Set?

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...


1 answers
134 views
0
I'm going to compare the two lists and get only the elements that don't exist back

I want to compare the two lists and get only the elements that are not in each other returned For example, temp1 = ['One', 'Two', 'Three', 'Four']temp2 = ['One', 'Two']temp3 = [Three, Four]I want to w...

1 years ago

1 answers
129 views
0
How do you create an empty set object?

Like this, list/tuple/dict has a literal meaning empty <list/tuple/dict>I wonder if there's such a thing as a set.

1 years ago

1 answers
79 views
0
I would like to ask you how to determine if a specific element exists in std::set!

Please let me know if there is a way to check if there are any elements in the set without using for or auto

1 years ago

1 answers
115 views
0
Can the charset setting of the web page and the charset of the server and db be different?

We are currently creating a web page with mysql, phpapache on the hosting server.The charset of the server and mysql is set to utf-8.But the page files on the web page are set to euc-kr.The Web was cr...

1 years ago

1 answers
105 views
0
I have a question when I put the result value of the ResultSet in the list while using JDBC

I'd like to put the result value of ResultSet in VO format on the list called allEmployee.The values in the list index should be different, so I'm continuing to create instances. Wouldn't this be a pe...

1 years ago

1 answers
79 views
0
I'd like to convert the list into a collection

list2007 = []for i in range(len(res2007)): a = res2007[i][0] list2007.append(a)set2007 = set([list2007])TypeError Traceback (most recent call last) in ()----> 1 set2007 = set([list2007])TypeEr...

1 years ago

1 answers
93 views
0
Has anyone ever made a "sequential" set data type with python?

A data structure such as a set is required, but the set cannot be used because it saves items in random order (?).I don't know where to start. I don't know where to start Please give me a hint ㅜ

1 years ago

1 answers
104 views
0
What is the difference between Set and List?

What is the difference between Set and List in Java?

1 years ago

1 answers
123 views
0
Can't I change Set to List without creating List?

Map<String, List> mainMap = new HashMap<String, List>();for(int i=0; i<something.size(); i++){ Set set = getSet(...); //return different result each time List listOfNames = new ArrayLis...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.