Question: java programming Write a program in a single class called DoubleLetters that does the following: The program should read in a single line of text

java programmingjava programming Write a program in a single class called DoubleLetters that

Write a program in a single class called DoubleLetters that does the following: The program should read in a single line of text from the keyboard. It should then print to the console the same line of text with these changes: Letters should be doubled. Exclamation points (!) should be tripled. All other characters appear as they do in the input string. The objectives of this assignment are to: Be able to read text input from the keyboard using a Scanner object. Be able to traverse the characters in a string using string class methods and a for loop. Be able to use an if statement in a loop. Example 1: if the input text is: Then your program should print: Example 2: if the input text is: Then your program should print: Write a program in a single class called DoubleLetters that does the following: The program should read in a single line of text from the keyboard. It should then print to the console the same line of text with these changes: Letters should be doubled. Exclamation points (!) should be tripled. All other characters appear as they do in the input string. The objectives of this assignment are to: Be able to read text input from the keyboard using a Scanner object. Be able to traverse the characters in a string using string class methods and a for loop. Be able to use an if statement in a loop. Example 1: if the input text is: Then your program should print: Example 2: if the input text is: Then your program should print

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!