How do I access a function in a separate file, and how does this separate file have to look like?
in
Programming Questions
•
1 year ago
I want a function in a separate file like that
-
public ArrayList DetermineV(SimpleOpenNI context, PVector head)
-
{
-
//content
- return theArray; //the array is an arraylist
-
}
I add that file with Sketch -> Add file.
But if I write in my main file
-
ArrayList f = new ArrayList();
-
f = DetermineV(context, head);
it says DetermineV cannot be found.
How do I access a function in a separate file, and how does this separate file have to look like?
1