New course! Every coder should learn Generative AI!
Try a free lesson0
pleaz hw can i make r pint the max value of and Arraylist??
max value of and arraylist
1 Answer
+ 1
You can sort arraylist in descending order and by using arraylist.get(0) you can get max value.