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 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 Spring in Action this week in the Spring 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: 3679
    
  16
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: 3679
    
  16
Continued in this thread
 
jQuery in Action, 2nd edition
 
subject: checking if two character appear in a string