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

 

getSecMax


Given a string of numbers separated by space, find the second maximum of that numbers.


getSecMax("2 1.2") → 1.2
getSecMax("1.3 4.1 5") → 4.1
getSecMax("") → 0.0

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

public double getSecMax(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: 215

Copyright Nick Parlante 2017 - privacy