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

 

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

Write a method that accepts a string and returns the same string but with all of the punctuation marks removed. For the purpose of this method, we will only consider four marks as punctuation marks: ".", "!", "?", and ","


removePunctuation("A man, a plan, a canal, Panama!") → "A man a plan a canal Panama"
removePunctuation("No punctuation here") → "No punctuation here"
removePunctuation("!?!??!!,....said Ralph.") → "said Ralph"

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

public String removePunctuation(String str) { }

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