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

Typo in the Autoboxing tutorial

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 8
    • docs
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Hi! I believe there's a typo in Autoboxing (https://docs.oracle.com/javase/tutorial/java/data/autoboxing.html) tutorial.
      In this excerpt:
      "sum += i;
              return sum;
      }
      Because the remainder (%) and unary plus (+=)"
      (+=) is called unary plus, but it obviously takes 2 arguments and should be called binary


            rgallard Raymond Gallardo
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: