Stacks finished data/programs/questions

This commit is contained in:
Xevion
2020-11-24 00:26:47 -06:00
parent 9db1b5bd75
commit cd721c514a
14 changed files with 332 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
//<2F> A+ Computer Science - www.apluscompsci.com
//Name - Ryan Walters
//Date - 11 December 2020
//Class - Computer Science II PreAP
//Lab - Lab 13D
import static java.lang.System.out;
public class Lab13d {
public static void main(String[] args) {
IntStack test = new IntStack();
test.push(5);
test.push(7);
test.push(9);
System.out.println(test);
System.out.println(test.isEmpty());
System.out.println(test.pop());
System.out.println(test.peek());
System.out.println(test.pop());
System.out.println(test.pop());
System.out.println(test.isEmpty());
System.out.println(test);
}
}