Question
Q1 - (Displaying a Sentence with Its Words Reversed) Write an application that inputs a line of text, tokenizes the line with String method split
Q1 - (Displaying a Sentence with Its Words Reversed) Write an application that inputs a line of text, tokenizes the line with String method split and outputs the tokens in reverse order. Use space characters as delimiters.
Q 2 - (Displaying Strings in Uppercase and Lowercase) Write an application that inputs a line of text and outputs the text twiceonce in all uppercase letters and once in all lowercase letters.
Q 3 - (Searching Strings) Write an application that inputs a line of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started