+ 3

How to solve?

class Array{ public static void main(String args[]){ Arraylist<integer>list=new Arraylist<integer>(); list.add(4); list.add(2); list.add(3); list.removed(2); Collection.sort(list); System.out.println(list .get(0)*list.size()); } }

7th Jan 2018, 6:20 AM
Akshaya
Akshaya  - avatar
2 Antworten
+ 4
You must not be posting challenge questions here, just try to figure out the answers yourself (use the Java course for any help). btw, it's remove() not removed() https://www.sololearn.com/learn/Java/2179/
7th Jan 2018, 6:24 AM
Dev
Dev - avatar
+ 3
Ok thanks 😊
7th Jan 2018, 7:36 AM
Akshaya
Akshaya  - avatar