import java.util.*;
public class IsEmptyArraylist{
public static void main(String args[]){
ArrayList<String> colors = new ArrayList<String>();
colors.add("Violet");
colors.add("Indigo");
colors.add("Green");
colors.add("Yellow");
colors.add("Orange");
colors.add("Red");
// colors.removeAll(colors);
colors.clear();
if(colors.isEmpty()){
System.out.println("The given Array is empty and the size of Array is :"+colors.size());
} else{
System.out.println("The given Array is not empty");
System.out.println("The array is :"+colors);
}
}
}