Question: Using java to make a program Activity 5 Create a String using the quote below and display it: The trouble with programmers is that you

Using java to make a program  Using java to make a program Activity 5 Create a String

Activity 5 Create a String using the quote below and display it: "The trouble with programmers is that you can never tell what a programmer is doing until it's too late.'" Now do the following operations on the string: Which methods are used? Are the static methods or instance methods 1. Find the length of the string and display it. Now count how many characters th.. are. Do these values match? Why or why (Hint: the API may not? help you answer 2. Ask the user to enter a string, and check whethervoranot that string is contained in the quote. Display acmessagebetween a accordingly, as well as the index (if foundylatic and instance 3. Ask the user to enter a character, and display teiex of that character. Now vice versa, allow the user to enter an index position, and display the character at that index. 4. Display the quote, but with "trouble" being all uppercase. Do not type out any of it manually - only use string methods to do this 5. Create a string with the text " - Seymour Cray". Now display the original quote with this new string attached. Use a method from the API to do so

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!