問題詳情

第49題Place code framgmets into position so the output is: The quantity is 420Place here update(int quantity, int adjust){Place here}public void callUpdate(){int quant = 100;Place hereSystem.out.println("The quantity is " + quant);}Code Fragmentspublic 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);}

參考答案