Buy 2+, save 55% on books & eBooks through December 1. Use code BOOKSGIVING. Learn more.
Additional sample videos, individual lessons and other formats are available here.
Register your product to gain access to bonus material or receive a coupon.
Lesson 6: Methods—A Deeper Look
static Methods, static Fields and Class Math
Programmer-declared method maximum with three double parameters
Argument Promotion and Casting
Java API Packages
Shifted and scaled random integers
Roll a six-sided die 6,000,000 times
Craps class simulates the dice game craps
Scope class demonstrates field and local-variable scopes
Overloaded method declarations