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

 

jebbert@volusia.k12.fl.us introtoarrays > makeArray
prev  |  next  |  chance

Write a method that accepts a string of characters. The method then returns an array of strings where each string in the array contains the original string but with a missing character. The index of the array will match the position of the missing character from the original string.


makeArray("abcd") → ["bcd", "acd", "abd", "abc"]
makeArray("xyz") → ["yz", "xz", "xy"]
makeArray("hi") → ["i", "h"]

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

public String[] makeArray(String original) { }

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: 250

Copyright Nick Parlante 2017 - privacy