View Single Post
  #1 (permalink)  
Old 07-02-2007, 07:28 AM
Eric Eric is offline
Senior Member
 
Join Date: Jun 2007
Posts: 111
Eric is on a distinguished road
I need didactic explanation
Need a detailed explanation on how this works, I know it does, but not sure how to explain it to some one else.

Code:
public void actionPerformed(ActionEvent event) { int value = 0; if (event.getSource() == tryAgain) guess=0; else if (event.getSource() == one) value = 1; else if (event.getSource() == two) value = 2; else if (event.getSource() == three) value = 3; if(value > 0) { guess *= 10; guess += value; }
Thanks.

Eric
Reply With Quote
Sponsored Links