You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program results in an ArrayStack with an ArrayStack with two Objects and a null element when it should end up with an ArrayStack with three Objects.
importscala.collection.mutable.ArrayStackvarx=ArrayStack[Object](newObject, newObject, newObject)
x filter (_.isInstanceOf[Object])
The text was updated successfully, but these errors were encountered:
The following program results in an ArrayStack with an ArrayStack with two Objects and a null element when it should end up with an ArrayStack with three Objects.
The text was updated successfully, but these errors were encountered: