I'm presenting two sample java code here...I'll appreciate if someone can give me an explanation at getting the expected outcome I believe there's something i need to learn here...
code sample one
I had no problem with compiling this code. I ran it as well. It didn't give any visible error or exception but nothing was printed out which is against my explanation. I supplied the appropriate runtime arguement as indicated in the code yet it ran(as it were) and printed nothing. How can this code print the text indicated?
code sample two
Just like the first sample, this code compliled successfuly. At runtime, i supplied the appropriate arguement to show successful payroll processing but no matter the arguements i supplied i keep getting only "Error...exiting". How do i get around this?