Presentation is loading. Please wait.

Presentation is loading. Please wait.

Animation of PartyK cups = new CoffeeCupH[(arg.length - 1) / 2];

Similar presentations


Presentation on theme: "Animation of PartyK cups = new CoffeeCupH[(arg.length - 1) / 2];"— Presentation transcript:

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


Download ppt "Animation of PartyK cups = new CoffeeCupH[(arg.length - 1) / 2];"

Similar presentations


Ads by Google