AutoBBoxing Example in Java

import java.util.ArrayList;
import java.util.List;
public class AutoBBoxing {
public static void main(String[] args) {
List list = new ArrayList();
list.add(10);
list.add(10.5);
System.out.println(list);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *