• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Symbols in Java

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic