Print array on screen as text

Asked

Viewed 36 times

0

How do I print the contents of an array on the screen using text() in the Processing language? I have the array pieces:

final int MAX_SIZE=56;

char[] pecas= new char[MAX_SIZE];

I added 6 in the array. The rest is empty.

When I use a loop and try to use text gives error.

  • Also put the error that gives the question

  • My code prints a square instead of the characters that are in the array. And that’s the error.

  • squares are uninitialized memories

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.