Created
January 2, 2024 02:10
-
-
Save affandes/dc9333eda308c0ebd52c1924fae7cb12 to your computer and use it in GitHub Desktop.
Contoh kode program untuk membuat Stack menggunakan class Stack yang dibuat sendiri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) { | |
Stack stack = new Stack(5); | |
stack.push(24); | |
stack.push(9); | |
stack.push(12); | |
System.out.println(stack.pop()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment