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

 

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

Write a method that returns an array with all of the Star Wars character names from the input array in the same order they were originally in, but with all occurrences of "JarJar" removed. Your resulting array should be the same length as the original array but with 'null' padding out the end of the array for each occurrence of "JarJar" that was removed.


mayTheFourth_2016(["Aniken", "JarJar", "EbbJi RoDel", "JarJar"]) → ["Aniken", "EbbJi RoDel", null, null]
mayTheFourth_2016(["Luke", "R2D2", "C3PO", "Darth Vader", "Darth Maul"]) → ["Luke", "R2D2", "C3PO", "Darth Vader", "Darth Maul"]
mayTheFourth_2016(["JarJar"]) → [null]

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

public String[] mayTheFourth_2016(String[] character) { }

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

Copyright Nick Parlante 2017 - privacy