python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Java ArrayList - Replace a specific letter or character within an ArrayList of Strings?
I'm trying to replace/remove certain characters within a String ArrayList. Here is the code that I've already tried:
for (int i = 0; i < newList.size(); i++) {
if (newList.get(i).contai...
giotto1
Votes: 0
Answers: 1
Stack an ArrayList
I'm creating a program to automate the train logistics system, using Java. I want store trains with ArrayList:
ArrayList<Train> train = new ArrayList<>();
and add a multiple stations to t...
Christian 30
Votes: 0
Answers: 2
IndexOf from an array shows as a negative number in an arraylist
class Main{
int index = Student.studenten.indexOf(loggedInId);
}
Here in the main class im trying to get the position of the variable loggedInId which is an int.
class Student{
static ArrayList<St...
Rav
Votes: 0
Answers: 2
Why can't i send my ArrayList to another fragment?
There are 2 fragments: A and B. From fragment A i want to send ArrayList (data) to fragment B.
action() - a method in which data transfer and transition to fragment B should occur (using navigate()). ...
vlados_spasi
Votes: 0
Answers: 1