How to add value to array

RazRaz
edited March 2016 in Questions about Code

I want to add a value to array which is controled by the keyboard. Like this:

 char[] a=new string[100];
char value="";

void draw(){
}
void keyPressed(){
value=key;
}

I want that the value will be added to the array and when it changes the new value will be added to next index. how to do this?

Answers

Sign In or Register to comment.