Java Collection : Stack - Exercises and Solution


1. Write a Java program to create a stack using Stack collection

View Solution

2. Write a Java program to create a stack with hybrid items using Stack collection

View Solution

3. Write a Java program to search an item in a Stack collection

View Solution

4. Write a Java program to check whether a Stack collection is empty or not

View Solution

5. Write a Java program to compare two Stack collections

View Solution

6. Write a Java program to convert a Stack collection into an Object array

View Solution

7. Write a Java program to create a Stack collection of objects of a class

View Solution

8. Write a Java program to get the size of Stack collection

View Solution

9. Write a Java program to traverse a Stack collection using the foreach loop

View Solution

10. Write a Java program to add a Stack collection into another Stack collection

View Solution

11. Write a Java program to Reversing a String using a Stack

View Solution

12. Write a Java program to Checking Balanced Parentheses using a Stack

View Solution

13. Write a Java program to Check Palindrome or Not

View Solution

14. Write a Java program to Decimal to Binary Conversion

View Solution

15. Write a Java program to add an ArrayList into Stack collection

View Solution

16. Write a Java program to Implement Stack using Queues

View Solution

17. Write a Java program to Reverse Linked List using Stack

View Solution

18. Write a Java program to Implement Min Stack

View Solution

19. Write a Java program to Binary Search Tree Iterator

View Solution

20. Write a Java program to Find Maximum Element in a Stack

View Solution



Basic Programs