X99: firstHalf

Given a string of even length, return the first half. So the string "WooHoo" yields "Woo".

Your Answer:

x
 
1
public String firstHalf(String str)
2
{
3
    
4
}
5
Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.