This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes char location... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "char location..." Watch "char location..." New topic
Author

char location...

Brandi Love
Ranch Hand

Joined: Sep 19, 2003
Posts: 133
What command would I use to locate a character at the beginning or end of a string (without knowing what number position it is in?)
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8915
    
    8

Take a look at java.lang.String


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
GeeCON Prague 2014
 
subject: char location...