Course Hero Logo

WINSEM2020-21_CSE1007_ELA_VL2020210504189_Reference_Material_I_08-Apr-2021_ASSESSMENT-4_9.pdf

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 out of 1 page.

Exercise -1Write a java program to count the number of lines in a file. Assume that the files aretext files. If an error occurs while trying to read from the files, you should print anerror message for that file.
Exercise -2Write a java program to count the occurrence of a particular word in a file. Assumethat the files are text files. Write each file name, along with the number ofoccurrences in that file, to standard output. If an error occurs while trying to read
End of preview. Want to read the entire page?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
NoProfessor
Tags
JJ Bumrah

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture