Posts by Bruno Vieira • 1 point
1 post
-
0
votes2
answers127
viewsA: Convert class to generic
A possible solution would be the following: public class ArrayStack { private ArrayList <Object> stack; public ArrayStack() { stack = new ArrayList <> (); } public void push(Object item)…