Pages

Friday, December 11, 2009

Flow chart of Fibonacci Series - 1 1 2 3 5 ...

Fibonacci series (1 1 2 3 5 8 13 21 34 55 89 ... )

This is the flowchart. Sorry it doesn't look nice, I made it in Raptor and edited in MSPaint. Hope it helps. If you want the Raptor file please comment in this post. Thank You. :)
Click the image for a larger view.

Thursday, December 10, 2009

How to Check if Radio Button is Selected or Deselected in Java

***

I can't seem to find an easier way to do this, or perhaps this is the only way since RadioButton depends on the action listener. Here's my code:


private void radioButtonActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
count++;
int ans = count%2;
if( ans == 0){
//radio button is deselected
}else{
//radio button is selected
}
}



***