wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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 :

c:\data\java\simpledotcom2>javac DotComBust.java
.\GameHelper.java:69: 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: 18505

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
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: newb question
Similar Threads
TIJ 3 problem at simpeltest
error when testing...any help will be appreciated
the get() line...
HeadFirst DotComBust... Help?
parameter passing (very beginner)