// A very simple code for employees add salary? // is very simple, but I also used me a lot of time // this is my first Java program 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 = JOPANE.SHOWINPUTDIALOG ("How much add"); double add = integer.parseint (Input);
Staff [0] = New Emplogee ("A", K); STAFF [1] = New Emplogee ("B", K1); STAFF [2] = New Emplogee ("C", K2);
For (int i = 0; i For (int i = 0; i