• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ignoring Punctuation?  RSS feed

 
Tracy Villa
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, is there anyway to ignore punctuation in a code besides using ReplaceAll?
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use String's methods to look at each individual character yourself and decide what to do with it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!