Question: Java PART A: HALF A STRING Write a program with class name HalfString that asks the user to enter EVEN length string. Then, your program

Java
PART A: HALF A STRING Write a program with class name HalfString that asks the user to enter EVEN length string. Then, your program should print out the first half. Methods to use: substring(), length() Testing cases: WooHoo HelloThere abcdef => Woo => Hello => abc => a => 01234 => kit ab 0123456789 kitten (Note that the sample input test cases are shown before the "=>" and the expected output each test case is after the "=>". Your program should print out the expected output only, not the input.) Sample output: Problems Javadoc Console terminated Haliloring Java Application/Library Java/Jewirtual Machines dk-12.0.2.dk/Contents Home/binava (Sep 10, 2019, 10:15 28 AM Please enter an EVEN length string: Woo Hoo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
