Your use of IDEs has isolated you from how things work.
See the tutorial:
"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
Type: Posts; User: Norm
Your use of IDEs has isolated you from how things work.
See the tutorial:
"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)
I don't think using an IDE helps. Try opening a command prompt window and using the java command to execute the program.
What happens if you read the file in an editor and save it with a different name?
When I use the program with the file:
I have no idea what is wrong with the working of the program on your system.
What does the code do when it is executed? Add an if statement inside the while loop to print out a message every 100 lines it reads. Something line this:
if(lineCount % 100 == 0)...
Are there any error messages when the program is executed? Copy the full text and paste it here. Add a call to the printStackTrace() method to the catch block to show the full text of the error...