Typo in "The Numbers Classes"

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: None
    • Component/s: docs
    • None

      In http://docs.oracle.com/javase/tutorial/java/data/numberclasses.html

      Line: byte mask = 0xff

      Explanation: Byte maximum value is 127 or 0x7f, but 0xff = 255. This code will throw a compilation error.

      Replace 0xff to a lower number.

            Assignee:
            Bernard Horan (Inactive)
            Reporter:
            Raymond Gallardo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: