Java Reference
In-Depth Information
93. for (int i = 0; i < remoteUrls.length; i++){
94. try {
95. returnValues[i] = (AppointmentTransactionParticipant)
Naming.lookup(remoteUrls[i]);
96. }
97. catch (Exception exc){
98. System.out.println("Error using RMI to look up a transaction participant");
99. }
100. }
101. return returnValues;
102. }
103.
104. private static Date[] getDates(int year, int month, int day, int hour, int increment){
105. Date[] returnDates = new Date[increment];
106. for (int i = 0; i < increment; i++){
107. returnDates[i] = createDate(year, month, day, hour + i, 0);
108. }
109. return returnDates;
110. }
111.
112. public static Date createDate(int year, int month, int day, int hour, int minute){
113. dateCreator.set(year, month, day, hour, minute);
114. return dateCreator.getTime();
115. }
116. }
Search WWH ::




Custom Search