Method Names
Rules
First character -- Lowercase letter or underscore allowed (digit not allowed)
Remaining characters (beyond first) -- Alphanumeric character or underscore allowed (digits allowed)
Examples of Valid Method Names
computeArea
computeArea2
compute
go
Examples of Improper Method Names
2computeArea
compute-Area
compute&Area
Compute
Go
Introduction To Objects With Java (Chapter 402 - Introducing Methods)
Chapter 402 - Introducing Methods
Naming Methods
Contents
Overview
Naming
Example
Challenge
Chapter
Top
Search
TOC