Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Symbols in Java  RSS feed

 
Klaas Vredevort
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey

How do I create an array of unexpected symbols, e.g. @, $, ;, * etc in Java?

Also, can anyone tell me how to remove something like "(1956)" from a text file? I'm asking because what I am planning to do is create a Hangman program, and I'm using the names of movies I drag from Wikipedia, which some of them have dates in brackets behind them? Does anybody have an idea? I'd like to do them easily and painlessly - I'll paste a part of the file so that you guys can see what I mean.

Thanks in advance!

Klaas


King: a Filmed Record...Montgomery To Memphis
King Kong (1933)
King Kong (1976)
King Kong (2005)
King Kong vs Godzilla
King of Hearts
The King of Kings (1927)
King of Kings (1961)
The Kiss
Kiss Me Deadly
Kiss Me, Kate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!