正在加载图片...
Declaration of a Field/ Local Variable *Type refers to both primitive type or class t In general, four basic forms of declarations 1. <type name> identifier; 2. <type name> identifier, identifier 3. <type name> identifier <initial value>; 4. <type name> identifier <initial value1>, identifier <initial value2>,.i t Examples of the last two forms string myName "Michael Fung double Hang SengIndex 17894.03, rainfall =3.4i K凶心 2008-20092a Michael Fung, CS&E, The Chinese University of HK 142008-2009 2a Michael Fung, CS&E, The Chinese University of HK 14 Declaration of a Field/ Local Variable  “Type” refers to both primitive type or class.  In general, four basic forms of declarations: 1. <type name> identifier; 2. <type name> identifier1, identifier2, … ; 3. <type name> identifier = <initial value>; 4. <type name> identifier1 = <initial value1>, identifier2 = <initial value2>, …;  Examples of the last two forms: String myName = "Michael Fung"; double HangSengIndex = 17894.03, rainfall = 3.4;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有