CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ

Control

Control Statements
Static methods
Call

The syntax for calling a static method that's in the same class

methodName([argumentList])
A call statement with no arguments
printWelcomeMessage();
A call statement that passes three arguments
double futureValue = calculateFutureValue(investment, rate, months);

Previous | Static methods | Code | Call | Application