THE Java™ Programming Language, Fourth Edition
public final intcapacity() No analogue. Returns the current capacity of the vector. In addition to these public methods, protect ...
21.15.5. Hashtable The Hashtable<K,V> class is similar to the HashMap class, but implements the methods of Dictionary as w ...
public StringgetProperty(String key, String defaultElement) Gets the property element for key. If the key is not found in this o ...
Henri Poincaré Chapter 22. Miscellaneous Utilities The best way to make a fire with two sticks is to make sure one of them is a ...
This is correct and informative, but it might provide more detail than the reader really needs to see, or more than you have roo ...
remember to do this yourself. No width, precision, or flag values can be used with the line separator conversion. The following ...
When you consider which argument types are expected for each conversion, remember that anything that applies to a primitive type ...
f, Fdecimal format (such as 3.142) g, Ggeneral scientific notation (see below) a, Ahexadecimal exponential format (as used for ...
22.1.4. Character Conversions The character conversions apply to argument types of byte, short, and char, together with int prov ...
LEFT_JUSTIFY, which indicates the flag for left-justification, and ALTERNATE, which indicates the # flag. Each Formattable class ...
constructor that takes a Locale object with which the formatter should work. If you do not specify a locale to the constructor, ...
publicBitSet(int size) Creates a new bit set with enough initial storage to explicitly represent bits indexed from 0 to size-1. ...
Clears all bits in this bit set that are set in other. The resulting value of a bit in this bit set is true only if it was origi ...
used.set(str.charAt(i)); // set bit for char } public String toString() { String desc = "["; for (int i = used.nextSetBit(0); i ...
protected voidsetChanged() Marks this object as having been changedhasChanged will now return truebut does not notify observers. ...
is added while notifyObservers is still in progress will not be notified of the current change. If the Observable object allows ...
throw new IllegalArgumentException(); UserState state = (UserState) whichState; if (watching.loggedIn(state)) // user logged in ...
Sets the seed of the random number generator to seed. This method can be invoked at any time and resets the sequence to start wi ...
Exercise 22.5: Given a certain number of six-sided dice, you can calculate the theoretical probability of each possible total. F ...
page 624might write out a number as a string, Scanner can read it back as a number.) [2] The Scanner class also supports scannin ...
«
21
22
23
24
25
26
27
28
29
30
»
Free download pdf