hello,
i am a bit confuse with the output of my code
this is my text file
and this is my
java code
The objective of this code is to get the employee id of employees and then display employee details.
e.g. you type an employee id 2006-0031
the code will then read the text file and when that employee id is found, it then display the name of employees and other details such as employee name, base pay, net pay.
The problem with my code is that when i type the employee id 2001-0001 it displays the output correctly
but when i type an employee id 2006-0031 or 2010-0008 i will get an error.
What is wrong with my code? what is the correct coding?