/** * If constructor taking a file name as input was used, this method simply * calls the method of the same name in <code>LineByLine</code>; otherwise, * it returns the next element of the array. * * @return The next line of input. **/ protected String readLine() { if (input != null) { if (index < input.length) return input[index++]; return null; } return super.readLine(); }
/** * If constructor taking a file name as input was used, this method simply * calls the method of the same name in <code>LineByLine</code>; otherwise, * it returns the next element of the array. * * @return The next line of input. **/ protected String readLine() { if (input != null) { if (index < input.length) return input[index++]; return null; } return super.readLine(); }