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??