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 programming
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
Get step-by-step solutions from verified subject matter experts
