File I/O
The output of the program
Create a text file to write data
to
NameAge.txt
How many names will be enter?
3
Enter the name: jj
Enter the age: 23
Enter the name: joe
Enter the age: 24
Enter the name: alan
Enter the age: 30
Enter name of file to be open
NameAge.txt
jj is 23 years old
joe is 24 years old
alan is 30 years old
< Java > <Home><Java Programs>