Are you able to compile your code? You have written printEmployee method inside main.
posted 4 years ago
I don't know how to use code tags??
when I am compiling this code it giving me an error on print employee method that illegal start of expression
I want to run this print employee method inside main.
but its not running showing this Run time exception.?? illegal start of expression
You should not be printing all those attributes of the Employee objects separately. You should give the Employee class an overridden toString method then you simply write
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
professionally read, modify and write PDF files from Java