File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes How put a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How put a " and \ in a Sting[] (array)" Watch "How put a " and \ in a Sting[] (array)" New topic
Author

How put a " and \ in a Sting[] (array)

Samuel Woodhams
Ranch Hand

Joined: Sep 01, 2009
Posts: 31
Hey, (sorry if i should have put this in a different forum)

im making an array to contain the entire (basic) ASCII table. But i've hit a problem, when i want to have ethier " or \ in the array, the code won't compile!

so this was my work around



now this means i can add - speechmark and backslash - in the string and still get the same results, it just makes the code more bitty than it should be, i was just wonderring if there was a better way round this problem?

Thanks in advance

sam
Miklos Szeles
Ranch Hand

Joined: Oct 21, 2008
Posts: 142
Hi Samuel,

The answer you need can be found here.
Samuel Woodhams
Ranch Hand

Joined: Sep 01, 2009
Posts: 31
Thats perfect thanks very much.

sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How put a " and \ in a Sting[] (array)