Forums Register Login

Is tab a character?

+Pie Number of slices to send: Send
Hi I am confounded by a String problem. I have this parser that is supposed to skip either spaces or null characters, but I got this one mysterious token that returns false for comparison with both null and space! And when I tried to println that token, it's blank. So, that left me to wonder if tab is considered a character that can be compared.
Please help.
+Pie Number of slices to send: Send
Yeah, tab is a character. Lacking oxygen is a terrible thing.
+Pie Number of slices to send: Send
Yup, its the character '\t'
[This message has been edited by David O'Meara (edited May 08, 2001).]
+Pie Number of slices to send: Send
Hi, Cameron.
Are you sure you're using the "equals" comparator for the space?
If "candidate" is a String, then...

Art
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1006 times.
Similar Threads
Reading strings from file
need help
request.setAttribute in firefox
Removing tab character(^I) and null character Unicode: 0x0 from configuration XML file.
StringTokenizer cannot split String with tabs?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:06:37.