File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "char location..." Watch "char location..." New topic

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

Joined: Oct 29, 2001
Posts: 9168

Take a look at java.lang.String

[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: char location...
It's not a secret anymore!