CODING OF FACTORIAL BUTTON(jButton1)
int num,i,fac = 1;
num=Integer.parseInt(jTextField1.getText());
for(i=num;i>0;i--)
{
fac=fac*i;
}
jTextField2.setText(" "+fac);
CODING OF CLEAR BUTTON(jButton2)
jTextField1.setText(" ");
jTextField2.setText(" ");
CODING OF EXIT BUTTON(jButton3)
System.exit(0);
![]() |
CODING |
![]() |
RUNNING |
We have used NetBeans IDE 7.3. To download it visit www.netbeans.org
For any query or suggestion please comment below...
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java Online Training in India . Nowadays Java has tons of job opportunities on various vertical industry.
ReplyDelete