ArrayOfClockObjects

ArrayOfClockObjects - / arrivalTimeEmp[49].setTime(8,5,10);...

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 &lt; arrivalTimeEmp.length; j++)//Line 5 System.out.println(&quot;Employee &quot; + (j + 1) + &quot; arrival time: &quot; + arrivalTimeEmp[j]); //Line 6 } }...
View Full Document

Ask a homework question - tutors are online