Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Button
- {
- Teller a = new Teller();
- CS b = new CS();
- int x;
- int saveTeller = 0, saveCS = 0;
- public void println (int x, int num)
- {
- if (x == 1)
- {
- System.out.println ("No. antrian Teller = " + a.tellerNumber(num));
- }
- else if (x == 2)
- {
- System.out.println ("No. antrian CS = " + b.csNumber(num));
- System.out.println ();
- }
- else
- {
- System.out.println ("Input salah");
- }
- }
- }
Add Comment
Please, Sign In to add comment