Mengecek kata PALINDROM menggunakan stack
NAMA : RISMA PARAMESTI NPM : 22082010014 KELAS : PARALEL A SOURCE CODE : package pkgPalindromStack; import java.util.Scanner; class Node { char data; Node next; public Node(char data) { this.data = data; this.next = null; } } class Stack { private Node top; public Stack() { this.top = null; } public void push(char data) { Node newNode = new Node(data); if (isEmpty()) { top = newNode; } else { newNode.next = top; top = newNode; } } public char pop() { if (isEmpty()) { ...