How to use a arraylist in a text?
in
Programming Questions
•
10 months ago
There is only one element: two letters(s1 and s2) in a ArrayList s,
I want to use it in a text, but I dont know how to do that. I dont know how to code this part; text(s[j], 20, 350);
Here is my code:
ArrayList s;
s.add(s1[0]+s2[0]);
for (int j = 0; j< s.size(); j++) {
s.get(j);
font = loadFont("YuppyTC-Regular-40.vlw");
textFont(font);
textSize(20);
fill(100, 255, 100);
text(s[j], 20, 350);
}
Could anyone please tell me???
I would very appreciate any advice that will achieve this result!!!
Thank you so much!
1