New answers tagged arraylist
Score of 1
1
vote
Find the average within variable number of doubles
For simplicity, I am writing the following with a standard array double[] a, but porting to ArrayList is straightforward. At the end of the code the desired mean value is always in the variable m.
...
Score of 0
0
votes
Check whether list of custom objects have same value for a property in Java 8
This is a somewhat verbose solution (unless you're reusing the Gatherer in different places in your code), but in Java 24 or later you could use a custom Gatherer to do this.
class State {
String ...
Top 50 recent answers are included
Related Tags
arraylist × 34504java × 26399
android × 6866
arrays × 5176
list × 2420
sorting × 1528
collections × 1330
hashmap × 1220
c# × 1206
string × 1193
object × 1085
json × 836
listview × 827
for-loop × 701
javascript × 596
python × 578
swing × 559
loops × 531
class × 509
multidimensional-array × 503
generics × 481
methods × 472
iterator × 385
kotlin × 379
oop × 341