import java.util.ArrayList;
import java.util.List;
public class NestedListEg1 {
public static void main(String[] args) {
List<List<Money>> outerList = new ArrayList<List<Money>>();
List<Money> innerList = new ArrayList<Money>();
innerList.add(new Money(Currency.USD, 100));
outerList.add(innerList);
System.out.println("outerList = "+outerList);
}
}
Asked
Active
Viewed 30 times
0

Phil Ross
- 25,590
- 9
- 67
- 77
1 Answers
0
You need to import Money class

Rahul Kumar
- 362
- 1
- 7
-
Without specific information on the actual error (that is, the affected symbol), this is just a guess. – Mark Rotteveel Jul 13 '20 at 11:50