FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 186 : join() doesn't work as documented in Processing Reference
Last modified: 2005-12-08 13:24
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P4
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
22samurai
Assigned To:
REAS
Attachment
Type
Created
Size
Actions
Description
: Opened: 2005-10-22 20:45
I am using processing 0093. I have been playing with join(), but it
doesn't seem to want to compile. The processing reference says it can join
float[], int[], and String[] arrays into a single String. When I try it,
I get this message: 'No applicable overload for a method with signature
"join(int[], java.lang.String)" was found in type
"processing.core.PApplet". Perhaps you wanted the overload version
"java.lang.String join(java.lang.String[] $1, java.lang.String $2);"
instead?' I even copied the example code and tried it - didn't work
either. (As an aside, it doesn't compile as written. The first array
definition should be int[] list=new int[3]; ).
Checking the source code, it says, "To use this on numbers, first pass the
array to nf() or nfs() to get a list of String objects, then use join on
that." So there is a work around, but it sems that either the code or the
reference needs to be changed to reflect the correct model of understanding.
-22
Additional Comment
#1 From fry 2005-10-22 22:04
this is a reference error. the code is correct as implemented, the reference merely refers to
the behavior from revisions 68 and earlier.
Additional Comment
#2 From REAS 2005-12-08 13:24
The reference should be clear now.