THE Java™ Programming Language, Fourth Edition
use the ioException method. It returns the last IOException that was thrown by the underlying source, or null if there have been ...
then null is returned and the position of the scanner is unchanged. Note that if the pattern does not match the entire line then ...
The findWithinHorizon methods operate similarly to findInLine except that they take an additional int parameter that specifies t ...
The above fails to work because it can act like there were two comments when there was only one. Consider a non-comment line fol ...
dealing with such a flexible format. If you add the = character to the delimiter it isn't too hard to simply treat every two wor ...
exercise it is only necessary that both versions accept the same correctly formatted input. Exercise 22.13: Extend your solution ...
The StringTokenizer class has several methods to control what is considered a word, whether it should understand numbers or stri ...
22.7. Timer and TimerTask The Timer class helps you set up tasks that will happen at some future point, including repeating even ...
public longscheduledExecutionTime() Returns the scheduled execution time of the most recent actual execution (possibly the in-pr ...
Schedules the given task for a once-only execution at the specified time. public voidschedule(TimerTask task, long delay) Schedu ...
of UUID values, generally known as types 1, 2, 3, and 4. You can ask a UUID object for its version by using the version method. ...
asin(v) arcsine(v), with v in the range [1.0, 1.0] acos(v) arccosine(v), with v in the range [1.0, 1.0] atan(v) arctangent(v), r ...
-7%2.5 is -2.0. The IEEE standard defines remainder for x and y differently, preserving symmetry of spacing along the number lin ...
23.1. The System Class The System class provides static methods to manipulate system state and acts as a repository for system-w ...
java.vm.version=1.5.0_02-b09 java.vm.vendor=Sun Microsystems Inc. java.vm.name=Java HotSpot(TM) Client VM java.specification.ver ...
Sets the value of the system property named in key to the given value, returning the previous value or null if the property was ...
Returns the current value, in nanoseconds, of the most precise available system timer. This method can only be used to measure e ...
Runs the command in cmdArray on the current system. Returns a Process object (described below) to represent it. The string in cm ...
// ... definition of plugTogether ... This code assumes that a method plugTogether exists to connect two streams by reading the ...
In the ls method we want to treat the output as character data, so we wrap the input stream that lets us read the child's output ...
«
22
23
24
25
26
27
28
29
30
31
»
Free download pdf