Question: By java language.. please be clear with your answer. Create a text file from a source on the Internet song lyrics, article, poem, etc.) 2
Create a text file from a source on the Internet song lyrics, article, poem, etc.) 2 Prompt the user for the filename, then open the file. Remember to use instead of For example: c:/data/myfile.txt /java Data/song.txt Read the text file into a String or array of chars 4 write the following methods to analyze the data read from a void DisplayString(string) b void DisplayStringCharRemoved (string, char) void DisplayAllUpper(string) d void DisplayAllLower(string) int CountLowerAlpha (string E int CountUpperAlpha (string) int CountAIIAlpha(string) int CountNonAlpha(string) void DisplayReversestring(string) This will rely heavily on looking at each character in the string with CharAt(). See the sample code I've posted for ideas. Output Please enter filename song.txt Original File: 123XXyyxxYYxxyy File with 'x' removed: 123XXyy YYyy All Upper: XXYYXXYYXXYY All Lower Number of Alpha 12 Number of Lower: 8 Number of Upper: 4 Number of Non-Alpha: 3 Reverse string: yyxxYYxxyyXX321
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
