Question: Java oriented Programming. I need a Number.Java and Driver.Java which holds the main method and where the code is executed. I need a code that

Java oriented Programming. I need a Number.Java and Driver.Java which holds the main method and where the code is executed. I need a code that allows the user to enter a string that has a numerical value and the program recognizes it and changes it into word format for numbers 1-9 any number above 9 displays as is. The program must be able to handle multiple number inputs within a string. The program must capitalize number if it is at the beginning of the sentence. You can only use a few methods of the string builder class

String Builder:

constructors

charAt( )

IndexOf( )

replace ( )

String:

constructors charAt( ) length ( ) length( ) is Digit ( )

Output:

Input was: 3 foxes were chasing 8 bears and 11 cats.

Output is: three foxes were chasing eight bears and 11 cats.

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 Databases Questions!