-
November 17th, 2013, 02:23 PM
#1
Help with findWithinHorizon
I am new to Java and currently learning it using the dummies book. I see findWithinHorizon(".", 0).charAt(0);
all the time, I understand that the "." is to find characters. What is the purpose of 0 and charAt(0) ?
if i run this code on the word "forget" it will come back with only one letter "f". However if i put it in a while loop it comesback with f, o, r, g, e, t All 6 letters, why is that ?? shouldnt this statement find the first letter and not all letters??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|