1374 Creating HTML Documentation with javadoc (on CD) (Msn web hosting)
1374 Creating HTML Documentation with javadoc (on CD) Appendix F 119 else 120 throw new Exception(); 121 } 122 123 /** 124 * Sets the second 125 * @param m the minute 126 * @throws Exception in the case of an invalid time 127 */ 128 public void setSecond( int s ) throws Exception 129 { 130 if ( s >= 0 && s < 60 ) 131 second = s; 132 else 133 throw new Exception(); 134 } 135 136 // Get Methods 137 /** 138 * Gets the hour 139 * @return an int specifying the hour. 140 */ 141 public int getHour() 142 { 143 return hour; 144 } 145 146 /** 147 * Gets the minute 148 * @return an int specifying the minute. 149 */ 150 public int getMinute() 151 { 152 return minute; 153 } 154 155 /** 156 * Gets the second 157 * @return an int specifying the second. 158 */ 159 public int getSecond() 160 { 16 return second; 16 } 16 16 /** 16 * Convert to String in universal-time format 16 * @return a String representation 16 * of the time in universal-time format 16 */ 16 public String toUniversalString() 170 { 171 DecimalFormat twoDigits = new DecimalFormat( “00″ ); Fig. F.2A Java source code file containing documentation comments (part 4 of 5). Fig. F.
In case you need quality webspace to host and run your web applications, try our personal web hosting services.