Welcome to the Ranch
Both examples are very poor because they have too long a main method. Ideal length of main method: one statement.
Use of
static members appears inappropriate.
Why are you using an array to store the Strings? There are far more appropriate data structures.
Failure to close readers. Failure to handle exceptions locally.