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

 

gaurav.gupta@mq.edu.au strings > removeAt
prev  |  next  |  chance

Define a function that when passed a String and an integer (say idx), returns a String with the character at idx (if any) removed from the original String.


removeAt("super", 2) → "suer"
removeAt("nicely done", 6) → "nicelydone"
removeAt("really?", -1) → "really?"

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

String removeAt(String s, int idx) { }

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

Copyright Nick Parlante 2017 - privacy