String Test Review

By Mickey Arnold
Last updated 10 months ago
34 Questions

DIRECTIONS : Complete the method below.
You will be writing only the go method.
The go method should:
Two words are sent in to the go method as word1 and word 2
You will RETURN a string containing the letters remaining AFTER the middle letter from both word1 and word2.
All words are odd lengths.
The answer will be printed in main so you do not need any System.out.println

All the Outputs should be:

lobye
leeam
INSTS
nasing
enslate
public static String go (String word1, String word2){
your code will go here
}