0

example for sorting list

import java.util.ArrayList; import java.util.Collections; public class MyClass { public static void main(String[ ] args) { ArrayList<String> animals = new ArrayList<String>(); animals.add("Dog"); animals.add("cat"); animals.add("Cheetha"); animals.add("Tiger"); Collections.sort(animals); System.out.println(animals); } }

11th Jul 2017, 10:56 AM
Hari krishna
Hari krishna - avatar
1 ответ
+ 2
yes definitely
11th Jul 2017, 11:16 AM
Hari krishna
Hari krishna - avatar