We are about to switch to a new forum software. Until then we have removed the registration on this forum.
can somebody tell me what I am doing wrong? I can't see it anymore. I think it is simple, but after staring at it for several hours I give up...
int geefCijfer (int[] cijfer1) {
String [] cijfers =loadStrings("cijfers_klein.txt");
int [] cijfer = new int [cijfers.length];
for (int i = 0; i< cijfers.length; i++) {
cijfer[i] = int(cijfers[i]);
println(cijfer);
}
return cijfer;
}
Answers
At the beginning
you want int[] since you return an array
This next should work (untested):
Kf
I doubt it ;-)
To get real help please post an entire code that’s runnable or a short version of it to demonstrate the problem
And the first 10 lines of your file also formatted as code
but kfrajer is right !!!
Thanks!!