Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4503204

DOC: Error in documentation of java.util.RandomAccess

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • docs
    • beta3
    • generic
    • generic



      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)
      ======================================================================

            jgraysunw Joann Gray (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: