A simple collection data type found in some languages / platforms (such as in Java or .NET).

learn more…| top users | synonyms

-1
votes
0answers
8 views

Custom ArrayAdapter (Array list) saved on SharePreferences

I am trying to save a Array List in my program. The list contains Urls that the user has visited or loaded into the WebView. I have done some research and it is possible but out of the >50 posts I ...
-3
votes
1answer
31 views

Java - ArrayList automatically delete elements

When i call method addFromDifferentCities() and add elements to ArrayList, then elements are added and all is fine. But when i call method listSize(), then ArrayList have 0 elements. Please, tell me ...
-4
votes
2answers
36 views

Scanner and ArrayList with letters

I would like to declare an arrayList named "courses" but I have a problem in my code. I also want to do a print of the note and of the course.ArrayList<Integer> listNotes=new ArrayList();...
1
vote
4answers
55 views

Random numbers mean and standard deviation Java

So I have a program that has a 50 number long list with random numbers between 1 and 50. I need to find the mean and the standard deviation of said list. I'm having trouble with adding all the random ...
0
votes
2answers
49 views

How do i split up an array that holds an array?

Hello my fellow JS friends,I am letting a user import a csv file (excel sheet) and i convert that into an array. which has 472 rows and 87 columns in this case.so my array looks like this:and ...
0
votes
0answers
23 views

ArrayList strange behaviour after update its values

I have a tabhost with several tabs and each tab contain a certain number of operations which are listed in a listview. To populate that listview I use an ArrayList.First time tabs are created ...
0
votes
2answers
38 views

how to find index of an array in java

i am trying to use this function but it is giving that index is -1.so what can i doint[] veer={14,25,14,56,15,36,56,77,18,29,49};int a=Arrays.asList(veer).indexOf(14);System.out.println("my ...
1
vote
2answers
50 views

Android Studio Recyclerview use Retrofit

please help me..i have 10 policy data on my PHP to show on recyclerview android studio using retrofit..but, when i run my emulator, the emulator just show 1 data..my plan just show PolicyNo..when i ...
-1
votes
1answer
31 views

Making listview arraylist on the next line and changing listview text color

How to make is so that the array list will show in the next line?example: Instead of Member Name: lalala / Member Until: Random date It would become Member Name: lalalaMember Until: Random date...
0
votes
1answer
36 views

Java: How could we convert an ArrayList to XML?

Hello and thank you for reading this question:I will explain the use case first and the approach I have tried:I have an ArrayList which holds Courses'data and it is being created in the ...
0
votes
2answers
35 views

Sorting lists, which algorithm is appropriate to use?

I've come to understand that when sorting say a LinkedList, it's better to use merge sort because when you want to put something in the middle of the list you do it in O(1) (constant) time and O(1) ...
4
votes
5answers
96 views

Remove duplicate numbers in Java 8 and get the sum

I am trying to remove the duplicate numbers in java 8 including the number of reference. For example I have an array with values like (2,3,2,5)All number 2's should be removed and the numbers should ...
-1
votes
0answers
14 views

.ignoreCase in user input in arraylist [duplicate]

When writing this block of code how do ignore the user from entering a lower case so when the user enters a bird name with a lowercase a match is still found..... thanks in advanceresponse=...
0
votes
2answers
36 views

Populating ListView After SQLite Query

I need to populate the data from the query and populate it on ListView with custom Item. on OnCreateView, I'm calling my adapter like this:final ArrayAdapter<String> arrayAdapter=new ...
0
votes
0answers
14 views

Android ArrayList onClick update dialogue interface

In my project, I have a button called customButton1. When clicked on, the User is given a dialog prompting them to add items to a checklist that already has pre-existing items by default. When the ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,