list tag

251 questions


1 answers
128 views
0
Convert items in the Python list to dictionary

a=[Seoul, Seoul, Gyeonggi, Gyeonggi, Incheon, Incheon]dic={0: 'Seoul', 1: 'Seoul', 2: 'Gyeonggi', 3: 'Gyeonggi', 4: 'Incheon', 5: 'Incheon'} How do I change from a to dic?

2 years ago

1 answers
100 views
0
What is the difference between ArrayList and Vector?

What is the difference between the two data structures of ArrayList and Vector? Where should I use each of them?

2 years ago

1 answers
54 views
0
Python json Specific Value Extraction

{ test: [ { customer: test1, type: [ windows ], contact: [{ name: a, email: @gmail.com, phone: null , remarks: null }] }, { customer: test2, type: [ android ], contact: [{ na...

2 years ago

1 answers
89 views
0
How do I erase repeating elements from the ArrayList?

There is a string ArrayList, but I want to erase the repeated string from this list. What should I do?


1 answers
106 views
0
I want to randomly pick items from Python

I want to randomly pick items on the list from Python. a = [1,2,3,4,5,6,7,8,9,10]InAnything (a) sometimes 3 and sometimes 1Is there a way to make anything come out together?

2 years ago

1 answers
47 views
0
How do you put two lists together in Java?

Is there a way to combine the two lists as short as possible with JDK without touching the existing list and without using other libraries?List<String> newList = new ArrayList<String>();ne...

2 years ago

1 answers
68 views
0
I'm a beginner at Python. Help me! (Convert string > list > dictionary > string order)

To find out how many times certain words appear in a string (text file) and to create a program that organizes items in descending order according to the frequency, we wrote the following code: For ex...


1 answers
122 views
0
c++ linked list deduplication, reverse question.

Source to clear if a simple link list has duplicate data.IsEmpty() is a boolean function that asks if the list is zeroLength() is a function that checks the length of the list.The Delete (int Position...


1 answers
53 views
0
Please tell me how to combine multiple lists in Python

list1 = [1,2,3]list2 = [4,5,6]list3 = [7,8,9]When you say there's something like this,result = [1,2,3,4,5,6,7,8,9]Please tell me the function that makes it list1.append(list2)If you do[1, 2, 3, [4, 5,...

2 years ago

1 answers
105 views
0
I have a question for Android Serializable.

I'd like to ask you a question about Serializable Intent.If you serialize the data class of ArrayList and simply send putExtra, the receiving side will receive itDo I just have to do getSerializableEx...

« - 12 - »

© 2024 OneMinuteCode. All rights reserved.