Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes checking if two character appear in a string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

checking if two character appear in a string

joseph okon
Ranch Hand

Joined: Dec 07, 2004
Posts: 63
can sum1 write a code to check if two character appear in a string and throw an exception if two of the character appear
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3502
    
  13
Yes. You can. If it doesn't work properly, post it here and tell us what the problem is and we'll see if we can help.


Joanne
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3502
    
  13
Continued in this thread
 
jQuery in Action, 2nd edition
 
subject: checking if two character appear in a string