for (int x = 0; x < 42; x++) { if (key == KeyList.charAt(x)) { textFont(AndaleMono,11); fill(50); textAlign(LEFT); text(KeyList.charAt(x),52,50); RecordList[0].substring(0,1) = KeyList.charAt(x);
} else {
} } }
This code give me an error "The left-hand side of an assignment must be a variable". What the problem? Or how could I record a substring of a string in another string?