Name: rmT116609 Date: 09/14/2001
java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)
The documentation page for java.util.RandomAccess has a slight fault in the
code sample, where the "i<n" is taken as a tag by the browser, so is not
displayed correctly.
It should be:
for (int i=0, n=list.size(); i < n; i++)
list.get(i);
runs faster than this loop:
instead of:
for (int i=0, n=list.size(); i
runs faster than this loop:
(Review ID: 130920)
======================================================================
- duplicates
-
JDK-4499831 HTML error in source for java.util.RandomAccess class doc comment
-
- Closed
-