id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

andersoniii.edwin@cusd80.com week1 > middleOfString
prev  |  next  |  chance

Write the String returning method that is to find the middle "character" in a given String - If the length of the string is even, then return the middle two characters.


middleOfString("apple") → "p"
middleOfString("applepie") → "le"
middleOfString("computer") → "pu"

...Save, Compile, Run (ctrl-enter)

public String middleOfString(String word){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 140

Copyright Nick Parlante 2017 - privacy