Is the enhanced version of the first program, joined the BOSS function

xiaoxiao2021-03-06  39

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 转载请注明原文地址:https://www.9cbs.com/read-76398.html


New Post(0)