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

 

amjadm@miamioh.edu assignment3 > minChar
prev  |  next  |  chance

Given a string containing [a-z] or [A-Z] and with the length of at least 1, return the smallest character inside the string. We define the smallest character as a character with the lowest corresponding ASCII code.


minChar("aBcA") → "A"
minChar("hello") → "e"
minChar("HI") → "H"

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

public char minChar(String str) { }

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

Copyright Nick Parlante 2017 - privacy