Created
January 2, 2024 02:02
-
-
Save affandes/9290aec22d74ac20e35149e34271b707 to your computer and use it in GitHub Desktop.
Contoh kode program membuat Stack dengan tipe data Mahasiswa
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<Mahasiswa> stack = new Stack<>(); | |
stack.push(new Mahasiswa("Andi","123")); | |
stack.push(new Mahasiswa("Budi","234")); | |
System.out.println(stack.pop()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment