Download presentation
Presentation is loading. Please wait.
Published by晨到 李 Modified over 5 years ago
1
Animation of PartyK cups = new CoffeeCupH[(arg.length - 1) / 2];
cups[ 0 ] = new CoffeeCupH(arg[2* 0 +1].charAt(0)); CoffeeCupH.setRatio(new Float(arg[0]).floatValue()); cups = new CoffeeCupH[(arg.length - 1) / 2]; cups[ 0 ] = new CoffeeCupH(arg[2* 0 +1].charAt(0)); cups[ 0 ] = new CoffeeCupH(arg[2* 0 +1].charAt(0)); cups[ 1 ] = new CoffeeCupH(arg[2* 1 +1].charAt(0)); cups[ 0 ].drink(Integer.parseInt(arg[2* 0 + 2])); cups[ 1 ].drink(Integer.parseInt(arg[2* 1 + 2])); cups[ 0 ].drink(Integer.parseInt(arg[2* 0 + 2])); cups[ 1 ] = new CoffeeCupH(arg[2* 1 +1].charAt(0)); cups[ 0 ].drink(Integer.parseInt(arg[2* 0 + 2])); CoffeeCupH.setRatio(new Float(arg[0]).floatValue()); cups[ 0 ] = new CoffeeCupH(arg[2* 0 +1].charAt(0)); java PartyK 0.8 Amy 10 Bill 20 CoffeeCupH.setRatio(new Float(arg[0]).floatValue()); java PartyK 0.8 Amy 10 Bill 20 CoffeeCupH.setRatio(new Float(arg[0]).floatValue()); String . . . value char[ ] 3 length '0' #0 '.' #1 '8' #2 "0.8" "Amy" "10" "20" "Bill" String[ ] 5 length #0 #1 #2 #3 #4 String . . . value char[ ] 3 '0' '.' '8' mthd stack CoffeeCupH 200 volume ratio this . . . this . . . 0.8 this . . . this . . . . . . . . . ? arg i cups CoffeeCupH[ ] 2 length null #0 #1 Float 0.0 value 0.8 this this f f 0.8 CoffeeCupH amount '?' drinker 160 'A' 150 this 10 i this c this i this 'A' c CoffeeCupH 160 amount 'B' drinker 140
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.