Question: PART D: MIDDLE TWO Write a program with class name Middle Two that asks the user to enter a string. Then, your program should print

PART D: MIDDLE TWO Write a program with class name Middle Two that asks the user to enter a string. Then, your program should print out a string made of the middle two chars. Assume the string length is at least 2 and is even. Methods to use: substring(), length() Testing cases: string TS 170: Java programming 1 code Practice. ab 0123456789 => od => ct => ab => 45 Sample output: Problems Javadoc Console terminated Middlewe Java Application L Please enter a string ! Practice. a vavirtual Machines de 12.02.dk/Contents/Home/bnjava (Sep 10, 2010, 11:04:27 AM) Smart Insert 10:1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
