I implemented Stack logic in java. Just look at my project and comment what you feel. It is very new way to apply Stack logic. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

I implemented Stack logic in java. Just look at my project and comment what you feel. It is very new way to apply Stack logic.

https://code.sololearn.com/cJKokJjXxF6Z/?ref=app

19th Aug 2021, 3:34 PM
Arbaz Ashfaque Shaikh
2 Antworten
+ 1
Nice! You can control errors in push and pop and use Generics (to use your Stack with any type, not only ints) Example: https://www.geeksforgeeks.org/how-to-implement-stack-in-java-using-array-and-generics/
19th Aug 2021, 3:51 PM
David García Prados
0
https://www.sololearn.com/discuss/1316935/?ref=app
19th Aug 2021, 3:35 PM
Simon Sauter
Simon Sauter - avatar