You will need to check about the []. You have [var] before something, which isn't permissible
Java. You also have [var+[i] which won't work because the [] aren't correctly paired off. You will need to go through the
String class and find its methods (there are lots of methods, but two you might actually want) which will help you get something useful to print out.
And if you have a for loop, try to avoid putting a number in the middle part.
You should be able to get a length parameter or a length method from things and that can be used instead of the 5 you are using.