getMajor() method

Syntax

int getMajor ()

Returns

the major

Usage

the major