arraylist tag

23 questions


1 answers
113 views
0
IndexOfcontains, etc. make the operation strange.

//hm.get(name): 1_01.wav//sound_list: [1_00.wav,1_01.wav]//Value is as above.Log.d(asdf, String.valueOf(sound_list.contains(hm.get(name)))); //-1Log.d(asdf, String.valueOf(sound_list.contains(1_01.wav...

2 years ago

1 answers
92 views
0
How to replace ArrayList with String[] array

String [] stockArr = {hello, world};This worksString [] stockArr = (String[]) stock_list.toArray();Why isn't this working?How do I change ArrayList to String[]?

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


1 answers
156 views
0
Can we do the order of ArrayList randomly?

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 answers
126 views
0
I want to use the Android Arraylist to put the data in, enter the Edittext window, and show it as a list, but I have no idea.

Add button on main screen (A) On the next screen (B) Enter Email (Edit Text)Enter name (edit text) Confirmation (Button) In this screen configuration, press the Email, Name, and OK button in the Edit ...

2 years ago

1 answers
88 views
0
Can I put data in ArrayList in the java array?

First of all, assuming that it's a structure, it' name, its age, The name of the structure is st. ArrayList [] list= new ArrayList[5];st s = new st(); s.Name (name);s.Age (11);list[0] = new ArrayList(...

2 years ago

1 answers
116 views
0
About the ArrayList add function

List<String> listItems = new ArrayList<String>(); for(BluetoothDevice device : mDevices) { listItems.add(device:mDevices){ } listItems.add (Cancel); } final CharSequence[] items = lis...

2 years ago

1 answers
76 views
0
How to use a different class method for a statement

package arrayList;import java.util.ArrayList;public class Student { String name; ArrayList<Book> bookList; public Student(String name) { this.name = name; bookList = new ArrayList<Book>(...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.