This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "newb question" Watch "newb question" New topic

newb question

Julien Castelain

Joined: Sep 27, 2005
Posts: 29
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: 29
ok sorry (impatient newbie attitude)
Henry Wong

Joined: Sep 28, 2004
Posts: 20057

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: 29
i saw that i made a typo...silly me
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: newb question
jQuery in Action, 3rd edition