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

 

abraskin@mbusd.org problemset09 > digOrd
prev  |  next  |  chance

Given a String, return an integer array that contains each digit in the String in numerical order from least to highest.


digOrd("sfddsfgfg") → []
digOrd("a1b2c3d") → [1, 2, 3]
digOrd("a5x4y32") → [2, 3, 4, 5]

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

public int[] digOrd(String s) { }

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

Copyright Nick Parlante 2017 - privacy