Import javax.swing. *;
public class AdminHour {public static void main (String [] args) {Emplogee [] staff = new Emplogee [3]; String input = JOptionPane.showInputDialog ( "how much money for A take"); int k = Integer.parseInt ( input); input = JOptionPane.showInputDialog ( "how much money for B take"); int k1 = Integer.parseInt (input); input = JOptionPane.showInputDialog ( "how much money for C take"); int k2 = Integer. parseInt (input); input = JOptionPane.showInputDialog ( "How much add"); double add = Integer.parseInt (input); input = JOptionPane.showInputDialog ( "how much money for zg take"); int zgmoney = Integer.parseInt (Input); INPUT = JOPANE.SHOWINPUTDIALOG ("How much money for zg add"); int zgadd = integer.parseint (Input);
Staff [0] = New Emplogee ("A", K); STAFF [1] = New Emplogee ("B", K1); STAFF [2] = New Emplogee ("C", K2); Manager Boss = New Manager ("D", zgmoney); boss.setbonus (zgadd); staff [3] = boss;
For (int i = 0; i For (int i = 0; i