Guest User

Untitled

a guest
Apr 16th, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.31 KB | None | 0 0
  1.  
  2. public class Main {
  3.  
  4.     public static void main(String[] args) {
  5.         Stack p = new Stack();
  6.         System.out.println(p.isEmpty());
  7.         System.out.println(p.values());
  8.        
  9.         p.add("values");
  10.         System.out.println(p.isEmpty());  
  11.         System.out.println(p.values());
  12.     }
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment