Exercise 21 Strings Using the given project Strings, complete each section in th
ID: 3837700 • Letter: E
Question
Exercise 21 Strings Using the given project Strings, complete each section in the class YourCode by using the methods specified in each exercise (you may declare additional variables). No need to ask the user to enter values; use the variables that are already declared in the method. The class Testing already has testing cases to test your code. You simply need to compile and execute either the main method or each section of this class. Details about methods of the class String can be found in the String lecture slides. The method length 00 requires no parameters and it returns the length of the string as an int. Folder name: A170 E21-YourLastName YourFirstName Part A. HALF A STRING Given a string strl of even length, print out the first half. Methods to use: substring0, length() Testing ax Woo HelloThere Hello abc a 0123456789 01234 Part B. WITHOUT ENDS Given a string strl, print out the string without the first and lastchar. The string lengthis atleast 2. Methods to use: substring0, length0 Testing cases Hello ax ell java coding od fempty string) kitten itteeExplanation / Answer
In which language it is to be written?? Java,C ,C++ or python? ? Testing class already exists? No need to check for test cases?? please provide the details in the comment,as soon as possible so that i can solve this quickly.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.