




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















public class Employee { public String name; public String address; public int number; public int SSN; public double salary; public void mailCheck() { System.out.println(“Mailing check to “
public class EmployeeDemo { public static void main(String [] args) { Employee e1, e2; e1 = new Employee(); e2 = new Employee(); e1.name = “Robert Smith”; e1.address = “123 Main St., Anytown, USA”; e1.number = 101; e1.SSN = 111223333; e1.salary = 10000.00; System.out.println(e1.computePay()); e1.mailCheck(); e2.name = “Jane Smith”; e2.address = “321 Main St., Anytown, USA”; e2.number = 202; e2.SSN = 333221111; e2.salary = 100000.00; System.out.println(e2.name + “ “ + e2.SSN); System.out.println(e2.computePay()); e2.mailCheck(); } } Second class that instantiates and uses Employee objects
234321 Java by Example 19
integrated development environment (IDE) is an application or set of tools that allows a programmer to write, compile, edit, and in some cases test and debug within an integrated, interactive environment. Combines editor, compiler, linker, debugger, other tools Has GUI (graphical user interface) Compiles + links + runs at the click of a button Helps put together a project with several modules (source files)
3- 20