Posts by Neto Ferraz • 1 point
1 post
-
0
votes2
answers127
viewsA: Convert class to generic
A solution would be parameterize its Arraystack class, and so you avoid cast the object in main. public class ArrayStack <E> { private List <E> stack; public ArrayStack() { this.stack =…