NO. 1 Simple program for employee add salary

xiaoxiao2021-03-06  42

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


New Post(0)