Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Use the following declarations to create a new string variable that contains

ID: 3659516 • Letter: 1

Question

1. Use the following declarations to create a new string variable that contains the phrase "going to Win" and print to the screen.

String word = "Washington";

2. Using the original string value forwordcreate a new string namedbackwardsthat contains the reverse of the original string inwordand print to the screen.

3. Given the following declarations : String phrase = " WazzUp ? - Who's On FIRST ??? - IDUNNO"; Write the necessary code to count the number of vowels in the string andprint appropriate message to the screen.

4. Search the string "George Washington" for the substrings "ton" and "Wish". Print an appropriate message to the screen

Explanation / Answer

String word = "Washington"; word = "going to Win"; // without the + System.out.println(word);