Getting errors working with String Arrays

You’re indeed initializing field lasths[] inside setup():
lasths = loadStrings("hs.txt");

However, you still attempt to access lasths[] w/ the array access operator [] BEFORE setup():
String ahs1 = lasths[0];

1 Like