Quantcast
Channel: TheoryApp » java collection
Browsing all 2 articles
Browse latest View live

A Stack Class in Java

What is a Stack? In English, a stack is a pile of objects. In Computer Science, a stack is a linear collection which allows adding or removing elements from the same end (the top). Stack elements are...

View Article



Shuffle an Array or a List in Java

How can we rearrange an array of items in random order? A simple way is to manipulate the array by picking elements randomly. Or we can use Java Collections API. Shuffle an Array Write a loop to go...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images