Category Archives: Java

Code to Count no of Words in a File

Hi pals,
Yesterday, I had a telephonic interview and the interviewer asked to create this program. Hope it might be helpful for you. He left the decision of choosing the programming to chose on me. The interviewer was a Window User and I prefer GNU/Linux. Therefore, I decided to code in Java. Because the program compiled in java is machine independent. It only requires Java Runtime Environment to run on the target platform.
Now let’s look at the code. Continue reading