home
How can we make an ArrayList in java consistent. Means when I have updated the ArrayList in one...
I have ArrayLists inside an HashSet. I add the numbers into the ArrayList using the for loop and...
Below is the code that I wrote: import static java.lang.System.out; import...
It seems like Java is ignoring one of my for loops that's nested in the following code: (Java only...
My goal is to find all possible combinations of items in an ArrayList with a fixed predefined...
Background: I am trying to change the ArrayLists to primitive arrays (double) in a large model....
I've implemented a simple blockchain in java using arraylist contain object (block class). ...
I need to print only 1,3,5,9 values of foreach. I have foreach in my template (joomla -...
I have three *.csv files and I'm using an interface to compare the objects. My question is: how...
I'm trying to create a "Paint" application with Processing 3, and I want to add buttons to change...
public class Animaltestdrive{ public static void main(String args[]){ MyanimalList...
I have a list of object from type Person: String id String name String address String...
I want to check whether I can replace elements from ArrayList which contains elements as...
I need to replace a few elements (double values) in arrayList2 with a value "var1" (double) using...
I'm learning Java and trying out stuff. I want to be able to print students' names with their...
This question already has an answer here: How do I print my Java...
Can I create an Arraylist like ArrayList<Integer, Integer> arrList = new ArrayList<>();...
1) ArrayList of custom Objects Example:: ArrayList<CustomModel> arrayList. 2) CustomModel...
for (Rectangle block:getBlock()) { for (Rectangle done:getDone()){ if (block.y == done.y + 40)...
I have a problem with displaying the elements of the ArrayList in Java. While returning the...
I recently started developing android apps in kotlin and have across this issue. I have var...
This question already has an answer here: How do I print my Java...
My object looks something like below class Item{ String color; int price; int...
I'm trying to figure out the best way to implement the code I'm working on. I have two options of...
How can I code the following: For example, I have one EditText in which I insert a word (or words)...
In Android, when you add an element to an ArrayList, it puts it into an array behind the scenes. If...
*import java.util.*; public class UserArrayList { public static void main(String[] args) { ...
First, I am a beginner, and I tried researching about this, tried to implement some solutions but...
What is the best way to get List<MyCustomObject> from List<MyCustomObject> that have...
So, I have an activity in my app where I need to take in the number of tickets for different ticket...