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

 

frew@mclean.com review2020 > celebrity
prev  |  next  |  chance

Writing method to disguise the entered celebrity names as follows:

1. Remove the first two letters
2. Remove the last three letters
3. Keep the rest of the letters and spacing the same.

Return the disguised name.


celebrity("Allan Alda") → "lan A"
celebrity("John Wayne") → "hn Wa"
celebrity("Gregory Peck") → "egory P"

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

public String celebrity(String name) { }

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

Copyright Nick Parlante 2017 - privacy