Write a JAVA program to read the following file (inputFile.txt) as input and display the output on console as shown below: (Note: The number of records and data in the file may be different each time you read the file. So, you have to handle it accordingly.) Save the data in file before reading i.e. no need to take input from user. % symbol must be used to separate the attribute values in each line of the file as shown below: [The record in each line of the file represent the name%year of birth%Blood group of person] Sample "inputFile.txt" ============== Ali%1975%B++ Daud%1965%O- Farzand%2014%A+ ============== Sample output at console or JOptionPane should be as under after reading the file Total records found: 3 Daud is the eldest among all the others. Farzand is the youngest among all the others.
Write a JAVA program to read the following file (inputFile.txt) as input and display the output on console as shown below: (Note: The number of records and data in the file may be different each time you read the file. So, you have to handle it accordingly.) Save the data in file before reading i.e. no need to take input from user. % symbol must be used to separate the attribute values in each line of the file as shown below: [The record in each line of the file represent the name%year of birth%Blood group of person] Sample "inputFile.txt" ============== Ali%1975%B++ Daud%1965%O- Farzand%2014%A+ ============== Sample output at console or JOptionPane should be as under after reading the file Total records found: 3 Daud is the eldest among all the others. Farzand is the youngest among all the others.



Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









