Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- /**
- *
- * @author ensia
- */
- import java.util.ArrayList;
- public class Stack {
- private ArrayList<String>stack;
- public boolean isEmpty(){
- if(stack.isEmpty()){
- return true;
- }
- return false;
- }
- public void add(String value){
- this.stack.add(value);
- }
- public ArrayList<String> values(){
- return this.stack;
- }
- }
Add Comment
Please, Sign In to add comment