We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsWebsite,  Documentation,  Book Bugs › ArrayList documentation missing .get
Page Index Toggle Pages: 1
ArrayList documentation missing .get (Read 1133 times)
ArrayList documentation missing .get
Nov 27th, 2008, 2:28am
 
Syntax section of
http://processing.org/reference/ArrayList.html

ArrayList documentation missing .get
and has typo varvar

Currently:

ArrayList varvar = new ArrayList()
var.add()
var.remove()
var.size()

shouldn't it be this?

ArrayList var = new ArrayList()
var.add()
var.get(number)
var.remove()
var.size()
Re: ArrayList documentation missing .get
Reply #1 - Nov 27th, 2008, 3:15pm
 
Well, the reference points to JavaDoc... But indeed, get is important... and used in the example.
Looking at HashMap, I see the methods are not listed, only constructor. Perhaps that's what should be done with ArrayList as well, for consistency?
Re: ArrayList documentation missing .get
Reply #2 - Nov 28th, 2008, 11:15pm
 
Followed PhiLho's suggestion, it's now updated online.
Page Index Toggle Pages: 1