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 newb question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newb question" Watch "newb question" New topic

newb question

Julien Castelain

Joined: Sep 27, 2005
Posts: 28
hi all,

i just started learning with the "Head First Java 2nd edition
book : i'm at page 153 on the sink a dot com game"
here's what i get when i try to compile :

.\ cannot find symbol
symbol : method chartAt(int)
location: class java.lang.String
temp = String.valueOf(alphabet.chartAt(column));
1 error

alphabet is a String (i can post all the code if you want, but that class
is a "utility class" from the book)

i know this is a silly one but could you help me out ?

thanks a lot
Julien Castelain

Joined: Sep 27, 2005
Posts: 28
ok sorry (impatient newbie attitude)
Henry Wong

Joined: Sep 28, 2004
Posts: 18538

The String class does not have a chartAt() method. It does have a charAt() method though. Perhaps you misread it?


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Julien Castelain

Joined: Sep 27, 2005
Posts: 28
i saw that i made a typo...silly me
I agree. Here's the link:
subject: newb question
Similar Threads
parameter passing (very beginner)
error when testing...any help will be appreciated
TIJ 3 problem at simpeltest
the get() line...
HeadFirst DotComBust... Help?