Question: Write Program in Java using file handling as in this program the code should display a menu which ask user to Add String o Lower

Write Program in Java using file handling as in this program the code should display a menu which ask user to

  • Add String

o Lower case format

o Upper case format

o Camel case (first letter capital of each word and third word completely capitalized)

  • Delete:

String o Line number

  • Exit:

This menu should display after each iteration.

On Camel Case your code should do the functionality for example user enter a string in lower case letters (also check string format is correct or not) e.g., "i love programming a lot" as you press enter. If user said that save it in camel case so this sentence should be saved into a file name code.txt and in this file, the string that has been entered by the user should be changed in such a way that every first letter of the word should be capitalized and the third word of the string should be totally capitalized. And same for upper case.

Input: i love programming a lot

Output: I Love PROGRAMMING A Lot

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!