Java聲明變量的基本格式如下:
type identifier [ = value][, identifier [= value] ...] ;
格式說明:type爲Java數據類型。identifier是變量名。可以使用逗號隔開來聲明多個同類型變量。