正在加载图片...
Thomas Cook class uStoHKConverter rate static final double rate 7.80 7.80 public static void main (String args)( double usdollar = 123.45; double HKdo1lar USdollar * rate System. qut println( WUS"+ USdollar " ->HK"+ HKdollar)i Modifiers/ Adjectives to be discussed later A class(static)constant(final K凶心 2008-20092a Michael Fung, CS&E, The Chinese University of HK2008-2009 2a Michael Fung, CS&E, The Chinese University of HK 24 Thomas Cook class UStoHKConverter { static final double rate = 7.80; public static void main (String [ ] args) { double USdollar = 123.45; double HKdollar = USdollar * rate; System.out.println( "US" + USdollar + " -> HK" + HKdollar); } } Modifiers/ Adjectives to be discussed later A class (static) constant (final) rate  7.80
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有