Question: Write a program in java that reads a text file and uses the StringTokenizer class. This file is stored in the variable path. The file

Write a program in java that reads a text file and uses the StringTokenizer class. This file is stored in the variable path. The file contains several instances of the word Burma. Replace each instance of Burma with Myanmar, and print the results of this transformation. The final output of your program should be:
Myanmar is a country in Southeast Asia.
The capital of Myanmar is Naypyidaw.
Its population is about 54 million people.
Myanmar is a former British colony.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!