Posts by Michele Bruno Filho • 1 point
1 post
-
-1
votes1
answer55
viewsQ: Error adding to a List in JAVA
I am trying to add a value to a list but am getting the following error: Cannot invoke "java.util.List.add(Object)" because "[]" is null The code is this: static void montaEl(int tam, Elemento el) {…