String Test Review
star
star
star
star
star
Last updated over 1 year ago
34 questions

1
1
1

1
1
1

1
1
1

1
1

1
1
1
1

1
1
1

1
1

1
1
1

1
1

1
1
1

1
1
1

1
1
1
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 2You 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:
lobyeleeamINSTSnasingenslate public static String go (String word1, String word2){ your code will go here}
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
}