Program Updates

This commit is contained in:
Niket Agrawal 2023-09-15 19:48:05 +05:30
parent b7b167ea1e
commit 5159e8ab67
1 changed files with 3 additions and 2 deletions

View File

@ -7,8 +7,9 @@ import java.util.List;
public class MultipleObjectTypeArrayList {
public static void main(String[] args) {
List<Object> multiTypeList = new ArrayList<>();
ArrayList<Object> multiTypeList = new ArrayList<>();
multiTypeList.add(Integer.valueOf(10));
multiTypeList.add(Double.valueOf(11.5));
multiTypeList.add("String Data");