A good answer might be:A text file. | |
Example ProgramRecall that a text file is just like any file, except that its bytes must represent characters and a few control characters. Java programs can use other types of file as input, but this chapter will only discuss text files as input. Here is a program that can be used with input redirection. Notice that it is written to do input from the keyboard:
C:\users\default\JavaLessons>java Echo Enter your input: This came from the keyboard You typed: This came from the keyboard D:\users\default\JavaLessons> | |
QUESTION 3:How many lines of data does the program read? Click Here after you have answered the question |