ArrayOfClockObjects

ArrayOfClockObjects - arrivalTimeEmp[49.setTime(8,5,10/Line...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
B public class ArrayOfClockObjects { public static void main(String[] args) { Clock[] arrivalTimeEmp = new Clock[100]; //Line 1 / for (int j = 0; j < arrivalTimeEmp.length; j++)//Line 2 arrivalTimeEmp[j] = new Clock(); //Line 3
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: / arrivalTimeEmp[49].setTime(8,5,10); //Line 4 / for (int j = 0; j < arrivalTimeEmp.length; j++)//Line 5 System.out.println("Employee " + (j + 1) + " arrival time: " + arrivalTimeEmp[j]); //Line 6 } }...
View Full Document

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Ask a homework question - tutors are online