Question: 1 . Add a method named problem 1 that keeps asking the user for words and joins them together. Each word should start with an
Add a method named problem that keeps asking the user for words and joins them together. Each word should start with an uppercase letter and the rest of letters in the word should be lowercase. All the words should be separated by a space. When the user decides to stop, return the joined string. pts Add a method named problem that asks the user for a string. Count and return the frequency of letter A The letters are not casesensitive so for example, you should treat A and a as the same letter. pts Add a method named problem that accepts a string and reverses it by manipulating indices. pts Add a method named problem to remove the th index character from the given string and return the result. If is an invalid index, return an error message. pts Add a method named problem that accepts an adjective, forms an adverb from the adjective, and returns the adverb. In most cases, an adverb is formed by adding ly to an adjective. For example, quick quickly If the adjective ends in y replace the y with i and add ly For example, easy easily If the adjective ends in able, ible, or le replace the e with y For example, gentle gently If the adjective ends in ic add ally. For example, basic basically. pts import java.util.Arrays Only the Arrays class is allowed to solve the following problems: Add a method named problem that accepts an array of integer values. Find and remove all the duplicate values. Return the result. Test case: the given integer array is return Add a method named problem that accepts an array of String values. Find and remove all the duplicate string literals. The string literals are not casesensitive so for example, you should treat apple and APPLE as the same string. Return the result. Test case: the given string array is appleApplebananaAPPLE return applebanana Add a method named problem that accepts two arrays of string values. Find and common elements. You may assume each array contains unique elements. Return the result. Test case: array is bananaappleorange array is applestrawberrywatermelonbanana return bananaapple Add a method named problem that accepts two arrays of integer values. Find the elements that only appear in one of the arrays. You may assume each array contains unique elements. Return the result. Test case: array is array is return Add a method named problem that accepts an array of integers. Move all s to the end of an array if any. Give two references, start and end, to initially point at the first and last elements in the array. Page Swap the elements at start and end if necessary. Make them gradually meet in the middle. Return the result. Test case: array is return Create the main method and run each method with the test case.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
