Hi Tony,
Welcome to JavaRanch!
Hi,
Welcome to JavaRanch!
First, a bit of business: you may not have read our
naming policy on the way in. It requires that you use a full, real (sounding) first and last name for your display name. Initials aren't enough. You can change your display name
here. Thanks!
As far as your question goes: it's possible to have Java
code without having a Java
program that you can actually run. That's what you've got here: just some code, not a program, so this will compile, but not run. A program needs a "main()" method, which the book will teach you about soon enough. Don't worry about it, and just keep reading!