Added add method in arraylist in java and fixed sort method (#24980)

This commit is contained in:
mridul981
2018-12-15 09:36:23 +05:30
committed by Manish Giri
parent 15d1acc82e
commit 69c325fa04

View File

@ -81,7 +81,7 @@ Since ArrayList implements *List*, an ArrayList can be created using the followi
**Sort elements in descending order**
```java
Collections.reverseOrder());
Collections.sort(variable_name, Collections.reverseOrder());
```
**Creating Array from ArrayList**