BenitoDannes

NewNumber-Button

Apr 19th, 2017
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.54 KB | None | 0 0
  1. public class Button
  2. {
  3.     Teller a = new Teller();
  4.     CS b = new CS();
  5.     int x;
  6.     int saveTeller = 0, saveCS = 0;
  7.  
  8.     public void println (int x, int num)
  9.     {
  10.         if (x == 1)
  11.         {
  12.             System.out.println ("No. antrian Teller = " + a.tellerNumber(num));
  13.         }
  14.         else if (x == 2)
  15.         {
  16.             System.out.println ("No. antrian CS = " + b.csNumber(num));
  17.             System.out.println ();
  18.         }
  19.         else
  20.         {
  21.             System.out.println ("Input salah");
  22.         }
  23.     }
  24. }
Add Comment
Please, Sign In to add comment