set tag

33 questions


1 answers
1 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.S...


1 answers
0 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 wa...

6 days ago

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

6 days ago

1 answers
1 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

6 days ago

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


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

6 days ago

1 answers
1 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])Ty...

6 days ago

1 answers
0 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 weeks ago

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

What is the difference between Set and List in Java?

1 weeks ago

1 answers
1 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 ArrayLi...

1 weeks ago
- 1 - »

© 2022 pinfo. All rights reserved.