Skip to content

Sams Teach Yourself Java in 24 Hours (Covering Java 7 and Android)

Best in textbook rentals since 2012!

ISBN-10: 0672335751

ISBN-13: 9780672335754

Edition: 6th 2012 (Revised)

Authors: Rogers Cadenhead

List price: $34.99
Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

In arenas ranging from enterprise development to Android app programming, Java remains one of the world's most popular programming languages. Sams Teach Yourself Java in 24 Hourshelps Java beginners gain true mastery over the new Java 7. In this book's straightforward, step-by-step approach, each lesson builds on everything that's come before, helping you learn Java's core features and techniques from the ground up. Friendly, accessible, and conversational, this book offers a practical grounding in the language, without ever becoming overwhelming or intimidating. This new edition adds coverage of Java 7 and Android. This coverage includes a new chapter on writing Android apps, as well as…    
Customers also bought

Book details

List price: $34.99
Edition: 6th
Copyright year: 2012
Publisher: Pearson Education
Publication date: 10/21/2011
Binding: Paperback
Pages: 432
Size: 7.25" wide x 9.00" long x 1.00" tall
Weight: 1.540
Language: English

Rogers Cadenheadis a writer, computer programmer, and Web developer who has written twelve books on Internet-related topics. He is an application developer and he maintains the Cruel Site of the Day and several other popular Internet sites that receive more than 7 million visits a year.

Introduction
Getting Started
Becoming a Programmer
Choosing a Language
Telling the Computer What to Do
How Programs Work
When Programs Don't Work
Choosing a Java Programming Tool
Installing a Java Development Tool
Writing Your First Program
What You Need to Write Programs
Creating the Saluton Program
Beginning the Program
Storing Information in a Variable
Saving the Finished Product
Compiling the Program into a Class File
Fixing Errors
Running a Java Program
Vacationing in Java
First Stop: Oracle
Going to School with Java
Lunch in JavaWorld
Watching the Skies at NASA
Getting Down to Business
Stopping by Java Boutique for Directions
Running Java on Your Phone
Understanding How Java Programs Work
Creating an Application
Sending Arguments to Applications
Creating an Applet
Learning the Basics of Programming
Storing and Changing Information in a Program
Statements and Expressions
Assigning Variable Types
Naming Your Variables
Storing Information in Variables
All About Operators
Using Expressions
Using Strings to Communicate
Storing Text in Strings
Displaying Strings in Programs
Using Special Characters in Strings
Pasting Strings Together
Using Other Variables with Strings
Advanced String Handling
Presenting Credits
Using Conditional Tests to Make Decisions
if Statements
if-else Statements
switch Statements
The Conditional Operator
Watching the Clock
Repeating an Action with Loops
for Loops
while Loops
do-while Loops
Exiting a Loop
Naming a Loop
Testing Your Computer Speed
Working with Information in New Ways
Storing Information with Arrays
Creating Arrays
Using Arrays
Multidimensional Arrays
Sorting an Array
Counting Characters in Strings
Creating Your First Object
How Object-Oriented Programming Works
Objects in Action
What Objects Are
Understanding Inheritance
Building an Inheritance Hierarchy
Converting Objects and Simple Variables
Creating an Object
Describing What Your Object Is Like
Creating Variables
Creating Class Variables
Creating Behavior with Methods
Putting One Class Inside Another
Using the this Keyword
Using Class Methods and Variables
Making the Most of Existing Objects
The Power of Inheritance
Establishing Inheritance
Working with Existing Objects
Storing Objects of the Same Class in Vectors
Creating a Subclass
Programming a Graphical User Interface
Building a Simple User Interface
Swing and the Abstract Windowing Toolkit
Using Components
Creating Your Own Component
Laying Out a User Interface
Using Layout Managers
Laying Out an Application
Responding to User Input
Getting Your Programs to Listen
Setting Up Components to Be Heard
Handling User Events
Completing a Graphical Application
Building a Complex User Interface
Scroll Panes
Sliders
Change Listeners
Using Image Icons and Toolbars
Moving into Advanced Topics
Creating Interactive Web Programs
Standard Applet Methods
Putting an Applet on a Web Page
Creating an Applet
Sending Parameters from a Web Page
Handling Parameters in an Applet
Using the Object Tag
Handling Errors in a Program
Exceptions
Throwing Exceptions
Throwing and Catching Exceptions
Creating a Threaded Program
Threads
Working with Threads
Starting with init()
Catching Errors as You Set Up URLs
Handling Screen Updates in the paint() Method
Starting the Thread
Handling Mouse Clicks
Displaying Revolving Links
Reading and Writing Files
Streams
Writing Data to a Stream
Reading and Writing Configuration Properties
Writing Internet Applications
Reading and Writing XML Data
Creating an XML File
Reading an XML File
Reading RSS Syndication Feeds
Creating Web Services with JAX-WS
Defining a Service Endpoint Interface
Creating a Service Implementation Bean
Publishing the Web Service
Using Web Service Definition Language Files
Creating a Web Service Client
Creating Java2D Graphics
Using the Font Class
Using the Color Class
Creating Custom Colors
Drawing Lines and Shapes
Baking a Pie Graph
Writing Android Apps
Introduction to Android
Creating an Android App
Running the App
Designing a Real App
Appendixes
Using the NetBeans Integrated Development Environment
Installing NetBeans
Creating a New Project
Creating a New Java Class
Running the Application
Fixing Errors
Where to Go from Here: Java Resources
Other Books to Consider
Oracle's Official Java Site
Other Java Websites
Job Opportunities
This Book's Website
Setting Up an Android Development Environment
Getting Started
Installing Eclipse
Installing Android SDK
Installing the Android Plug-in for Eclipse
Setting Up Your Phone