Java Exercises Answers - UCCS

Exercise 5: Write a Java method to display the middle character of a string. a) If the length of the string is odd there will be two middle characters.

Part of the document

Exercise 5: Write a Java method to display the middle character of a string. a) If the length of the string is odd there will be two middle characters.