{
private int empNum; public int getEmpNum() { return empNum; } public void setEmpNum(int emp) { empNum=emp; }
}
public class TwoEmp
{
public static void main(String[]args) { Employee clerk = new Employee(); Employee driver= new driver(); clerk.setEmpNum(345); driver.setEmpNum(456); System.out.println("The clerk's number is" + clerk.getEmpNum() + " and the friver's number is " + driver.getEmpNum()); } } public class Numbers
{
public static void main(string[]args) { number1= 10; number2= 20; sum(number1, number2); different( number1, number2); } public static void sum(int no11 , int no22) { int plusnumber, plusnumber2; plusnumber =int no11 + int no22; plusnumber2 = int no22 + int no11; System.out.println("Sum Number= " + plusnumber + "!"); System.out.println("Sum Number= " + plusnumber + "!"); } public static void different(int nu 111 , int nu 222) { int minusnumber; int minusnumber2; minusnumber = int nu 222 - int nu 111; minusnumber2= int nu 111 - int nu 222; System.out.println("Minus number = " + minusnumber + "!"); System.out.println("Minus number = " + minusnumber2 + "!");
} }public class Numbers
{
public static void main(string[]args) { number1= 10; number2= 20; sum(number1, number2); different( number1, number2); } public static void sum(int no11 , int no22) { int plusnumber, plusnumber2; plusnumber =int no11 + int no22; plusnumber2 = int no22 + int no11; System.out.println("Sum Number= " + plusnumber + "!"); System.out.println("Sum Number= " + plusnumber + "!"); } public static void different(int nu 111 , int nu 222) { int minusnumber; int