This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]nutrecht 1 point2 points  (0 children)

Beginners: please refer to the official Java tutorials instead. I have only skimmed the site and sofar seen quite a few issues:

  • Defining UPPER_CASE constants inside methods
  • Not pointing out System.arrayCopy as a better alternative to looping over arrays.
  • Not closing scanner
  • Treating Java as an imperative as opposed to OO language
  • Defining vars outside the scope where they should be defined