A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
How to find a special character in a string?
Joined: Jan 09, 2010
Sep 10, 2011 06:40:34
I need to find if a line contains "CODE" . The two " are also part of the search. How do I do this using
? Or is there a better way?
Joined: Mar 22, 2005
Sep 10, 2011 06:47:48
The String.indexOf method comes to mind. Double quotes can be used in a
by prefixing them with a backslash.
Java web charts
I agree. Here's the link:
- it saves me about five hours per week
subject: How to find a special character in a string?
green horn, ranch hand, not related to java
how do I find date difference in months
searching in saloon.javaranch.com for the last 3 months
Suggestions on database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013