Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Beginning Java
illegal characters
Sasha Hernandez
Greenhorn
Posts: 21
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Suppose you had a program that was reading in some tokens and you had to
test
for any illegal characters. How would you do it?
bhabani sahu
Greenhorn
Posts: 1
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
depends on how you define your illegal chars . After you capture the tokens based on your delimiters you'll like to check if your illegal chr exists in the token. You can use
String
functions if your illegal char is ascii data.
hth.
Tom Wolve
Ranch Hand
Posts: 32
posted 20 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
the String method 'indexOf(..)' is very helpful.
if it returns -1, the character is not in the string.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
encrypted username breaks sql
Using characters like quote, ampersand in xml
error on server -- checks fine in Stylus Studio..
Invalid XML character
500: SERVER ERROR [AS - 00-0002]
More...