WRITE JAVA CODE FOR QUESTION MENTIONED IN PHOTO
Answers
Answer:
Wipro TalentNext PBL
Topics Covered: Hands-on Assignments for I/O Operations
No. Hands-on Assignment Topics Covered Status
1
File : Count Character Write a program to count the number of times a character appears in the File. (Case insensitive... 'a' and 'A' are considered to be the same)
Sample Output: Enter the file name Input.txt Enter the character to be counted r File 'Input.txt' has 99 instances of letter 'r'.
I/O Streams
2
File Copy Write a program to copy from one file to another.
Sample Input and Output: Enter the input file name Input.txt Enter the output file name Output.txt
I/O Streams
3
File Word Count Implement a code to count the occurrences of each word in an input file and write the word along with corresponding count in an output file sorted by the words alphabetically. (Hint : Use Map as an intermediate collection) Sample Input inputFile.txt Manoj works at Wipro Katari works at Wipro Sureka works at Wipro Harish works at Wipro Anitha works at Wipro Janani works at Wipro Sample Output D:>Java FileWordCount inputFile.txt outputFile.txt outputFile.txt Anitha : 1 Harish : 1 Janani : 1 Katari : 1 Manoj : 1 Sureka : 1 Wipro : 6 at : 6 works : 6
I/O Streams
Explanation:
plz mark as brainlist