Question: Problem 3 Write a program in which you create a class called TextFileReader. The TextFileReader class must contain an instance variable consisting of an

Problem 3 Write a program in which you create a class called TextFileReader. The TextFileReader class must contain an instance variable consisting of an array of Strings 100 elements long. TextFile Reader should have two constructors: a default constructor and a constructor that takes a String argument, which represents the name of a text file to be opened and read into the array of Strings. The first (default) constructor does not really do anything. If the second constructor is used, it will open the file and read the contents of the file
Step by Step Solution
There are 3 Steps involved in it
Heres a simple example in Java for the TextFileReader class import javaioBufferedReader impor... View full answer
Get step-by-step solutions from verified subject matter experts
