public static void main(String[] args){
      System.out.println("Starting test.");
      // Create two employee objects
      // Employee is a type, just like int or String, so we make
      // employee objects just the same way.
      Employee john = new Employee("John Lennon", "Strawberry Fields", 1, 16.00);
      Employee paul = new Employee("Paul McCartney", "Penny Lane", 2, 15.50);

      System.out.println(john.getName()+" "+
                         john.getAddress()+" "+
                         john.getIdNumber()+" "+
      System.out.println(paul.getName()+" "+
                         paul.getAddress()+" "+
                         paul.getIdNumber()+" "+

downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter