1111111111111111111111111111111
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
update(int quantity, int adjust){ Place here } public void callUpdate(){ int quant = 100; Place here System.out.println(\"The quantity is \" + quant); } Code Frag
public void callUpdate(){ int quant = 100; quant = update(quant, 320); System.out.println(\"The quantity is \" + quant); }
Place code framgmets into position so the output is: The quantity is 420 Place here update(int quantity, int adjust){ Place here } public void callUpdate(){ int quant = 100; Place here System.out.println(\"The quantity is \" + quant); } Code Fragments public int quantity = quantity + adjust; update(quant, 320); public void quant = update(quant, 320); public int update(int quantity, int adjust){ } public void callUpdate(){ int quant = 100; quant = update(quant, 320); System.out.println(\"The quantity is \" + quant); }
阿摩線上測驗: http://www.yamol.tw/testpaper.php?rid=34341078#ixzz4yH2d20BE
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz