java.lang.ObjectFileScannerDemo
public class FileScannerDemo
Input files using classes File and Scanner.
Constructor Summary | |
---|---|
FileScannerDemo()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Opens an input Scanner file, reads name, age and phone number data into a StringBuilder object and then writes the StringBuilder object to the terminal window. |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileScannerDemo()
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
args
- the String[] array command line parameter
java.io.IOException
- if some sort of I/O exception has occurred