Hi,
I am using Processing to send lots of data do arduino but sometimes my code crashes and I discovered it's because I am using more itens of my array than I have.
In my code I have this:
String[][] val = {{"0","6","10"},{"1","10","10"},{"1","10","14"},{"1","10","14"},{"1","10","14"}};
How do I get to know that this "val" array has 5 elements in its first level? I tried using sizeOf(val) but processing says "The function sizeOf does not exist". I also tried "sizeof" and didnt work either.
I dont want to explicit the number of itens in my array at String[10][], so how I do that?
PS: I am aware that sizeOf will return the number of bytes not of elements, but I can work it out by myself after I get the number of bytes.