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

 

andersoniii.edwin@cusd80.com week5 > middleMan
prev  |  next  |  chance

middleMan(int nums) - Write the method MiddleMan that receives an integer and returns as a String the middle digit of the given integer. If the parametric integer "nums" has an even number of digits then return "None"


middleMan(123) → "2"
middleMan(12345) → "3"
middleMan(4444) → "None"

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

public String middleMan(int nums){ }

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: 100 Post-solution available

Copyright Nick Parlante 2017 - privacy