Comment

austin
hi!,
August 31, 2008 at 2:37 PM

i've input number 3 on your program then it outputs the answer which is 6, is this correct? I guess 9 is the answer if 3!? im confused pls help..
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

factorial - Java Beginners
for more information.http://www.roseindia.net/java/beginners/Factorial.shtml...factorial Example in Java  The factorial method is used frequently in probability problems. The factorial of a positive integer n (written as n 

Java Beginners

hi....
hi....  a programme which displays a combobox which contains num from 1 to 10 and calculates the factorial of dt num which user clicks 

Java Beginners

program on factorial of a given number in java
program on factorial of a given number in java  please tell me, how to write program on factorial of a given number in java 

Java Beginners

program on factorial of a given number in java
program on factorial of a given number in java  please tell me, how to write program on factorial of a given number in java 

Java Beginners

hi - Java Beginners
/beginners/DateDifferent.shtml http://www.roseindia.net/java/java-get-example/number...hi  hi sir, i am entering the 2 dates in the jtable,i want to difference between that dates,plz provide the suitable example sir   Hi 

SQL Question

How to get factorial in mysql
How to get factorial in mysql  Hi, In order to improve the speed... alot for a function in mysql to find factorial numbers of a number and couldn't.... example: for 1155, the factorial numbers would be: 3, 5, 7, 11 Thank you 

Struts Questions

Hi
Hi  Hi this is really good example to beginners who is learning struts2.0 thanks 

Java Beginners

hi - Java Beginners
information. http://www.roseindia.net/java/ Thanks.   Hi... For read more information http://www.roseindia.net/java/beginners...hi  Hi.... let me know the difference between object and instance 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is java?  Java is a platform independent.... Object Oriented Programming structre(OOPS) concepts are followed in JAVA as similar to C++. But JAVA has additional feature of Database connectivity, Applets 

Java Beginners

hi sir - Java Beginners
hi sir  Hi,sir,i am try in netbeans for to develop the swings,plz... the details sir, Thanks for ur coporation sir  Hi Friend, Please visit the following link: http://www.roseindia.net/java/java-tips 

Java Beginners

hi all - Java Beginners
hi all  hi, i need interview questions of the java asap can u please sendme to my mail   Hi, Hope you didnt have this eBook. You.../Good_java_j2ee_interview_questions.html?s=1 Regards, Prasanth  HI 

Java Beginners

hi, - Java Beginners
hi,  what is the need for going to java.how java differ form .net.What is the advantage over .net.Is there any disadvantage in java  Hi Friend, Difference between java and .net: 1)Java is developed by Sun 

Java Beginners

Hi Check this.... - Java Beginners
Hi Check this....  Hi Sakthi here.. Run This Code..   Hi sakthi Your code is not visible here, can u send again please.. Thanks 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is object?  A Blue print of class  Hi deepthi, Objects are the basic run time entity or in other words.... http://www.roseindia.net/java/master-java/index.shtml Thanks. Amardeep 

Java Beginners

hi roseindia - Java Beginners
hi roseindia  what is class?  Hi Deepthi, Whatever we can see in this world all the things are a object. And all the objects... information about class with example at: http://www.roseindia.net/java/master-java 

Java Beginners

Hi.... - Java Beginners
Hi....   Hi Friends, Thanks for reply can send me sample... me its very urgent....   Hi Friend, Plz give full details.... For example : Java/JSP/JSF/Struts 1/Struts 2 etc.... Thanks 

Java Beginners

Hi.. - Java Beginners
Hi..  Hi, I got some error please let me know what is the error integrity constraint (HPCLUSER.FAFORM24GJ2_FK) violated - parent key its very urgent  Hi Ragini can u please send your complete source 

Java Beginners

hi - Java Beginners
Hi anjali, class ploy { public void ployTest(int x...); } } ------------------------------------------------- Read for more information. http://www.roseindia.net/java/learn-java-in-a-day/oops.shtml Thanks 

Java Beginners

hi Friend... - Java Beginners
plz Explain this...Thank u.. Sakthi   Hi friend, Java IO : The Java Input/Output (I/O) is a part of java.io package. The java.io package...hi Friend...  Hi friend... I have to import only 

Java Beginners

Hi - Java Beginners
Hi  Hi, Please send me answer of my posted question,its urgent Thanks 

Java Beginners

hi - Java Beginners
hi  hi sir,create a new button and embed the datepicker code to that button sir,plzzzzzzzzzzzzzzzzzzzzzzzzzzz 

Java Beginners

hi friend - Java Beginners
hi friend  ummm i want to know a java code ...what are the code if i want to display inverted pyramid(shape). i mean a pyramid is reversed down.... thank u friends!!!  Hi friend, Inverted pyramid code class 

Java Beginners

Hi, - Java Beginners
Hi,  Hi friends I have some query please write the code and send me.I want adding value using javascript onChange() Events...please write the code and send me ts very urgent 

Java Beginners

Hi - Java Beginners
Hi  Hi friends, I want download c&c++ software.....can u send me link....its urgent...please send me likn or site name  Hi Friend Pradip Dutta Go this link http://www.bloodshed.net/ Here you can fine your 

Java Beginners

Hi... - Java Beginners
Hi...  Hi friends, I hv two jsp page one is aa.jsp & bb.jsp... but this not working Upload Record please tell me   Hi Friend, Please clarify your question. Thanks  Hi frnd, Your asking 

Java Beginners

Hi.... - Java Beginners
Hi....  Hi Friends when i compile jsp file then got the error "code to large for try statement" I am inserted 177 data please give me solution and let me know what is the error its very urgent  Hi Ragini 

Java Beginners

hi.... - Java Beginners
hi....  Hi friends i am using ur sending code but problem is not solve my code is to much large i am this code please check it and solve its very urgent   Hi ragini, First time put the hard code after 

Java Beginners

Hi... - Java Beginners
Hi...  Hi, I want make a date fields means user click date option then open the calender and if user choose like toady date then date... code; if any one need just mail me: fightclub_ceo@sify.com   Hi 

Java Beginners

hi - Java Beginners
hi  hi sir,i want to use the variable in 1 class to another class,how we use the 1 class variable in another class, Thanq  Hi Friend, Try the following code: class ABC { public int i=10; } public 

Java Beginners

Hi Friend... - Java Beginners
Hi Friend...  import java.util.*; // PACKAGES WHAT DOES IT MEAN ... --------------------------------------------------------- IpImage ip1... IS IT?   Hi friend, IpImage ip1=(IpImage)obj; // CREATION 

Java Beginners

hi - Java Beginners
hi  hi sir,Thanks for ur coporation, i am save the 1 image with customer data,when i am search that customer data,i want to see that image... sir,plzzzzzzzzzzzz  Hi Friend, Please provide some more 

Java Beginners

Hi... - Java Beginners
Hi...  Hello Friend I want to some code please write and me I want to add dynamic row value in onChange event created dynamic... and send me..... its very urgent  Hi friend, Plz specify the technology 

Java Beginners

Hi, - Java Beginners
Hi,  Hi Friends, I want to write code in java for change password please provide the code change password have three field old_pwd,new_pwd,con_pwd Thanks  Hi Friend, Create a database table login[id 

Java Beginners

hi - Java Beginners
hi  hi sir,i am almost complete my project,i want to create a batch file for my project,how to create a batch file for my project,plz help me or plz provide me with some examples ThanQ 

Java Beginners

hi again - Java Beginners
hi again  i did the changes on the code but still the time.../java/thread/thread-creation.shtml code after changing.. import java.io....; // testing every character for (int n=0 ;n  Hi friend, Do changes 

Java Beginners

Hi... - Java Beginners
Hi...  I want to write code for change password from data base please... java bean file for setting and getting and other is .jsp file this file... is occur  Hi Friend, Try the following code: 1)change.jsp 

Java Beginners

hi - Java Beginners
hi  hi sir,good afternoon, i want to add a row in jtable when i am pressing the enter key,and that row is available to insert the data plz give the program sir,urgent Thank u  Hi Friend, Try 

Java Beginners

Hi.... - Java Beginners
Hi....   I hv 290 data and very large form..In one form it is not possible to save in one form so i want to break in to part....And i give...; Hi friend, Some points to be member to solve the problem : When 

Java Beginners

Hi.. - Java Beginners
Hi..  Hi, I hv some page within jsps folder this is admin.jsp this page create some link left side if i am clicking create user then admin_create_user.jsp page should be open within admin.jsp but this is open in another 

Java Beginners

hi - Java Beginners
hi  hi sir, i am using jtable to add the records to the database by using submit button ( i am using submit 4 add records 2 database sir) ,if i want to add a some more record into my jtable then previous record is overlapped 4 

Java Beginners

HI - Java Beginners
HI  how i make a program if i take 2 dimensional array in same program & add each row & column & make other dimensional array by the help of switch case & also i do subtraction & search dialognal element in this.  Hi 

Java Beginners

hi - Java Beginners
hi  hi sir, i want to create a jtable(with check boxes) by using vector(i am add a columnames and data by using vector) and i want to add a check box for every row in jtable.and when i am selected a check box 

Java Beginners

hi - Java Beginners
,then there is no way to change this,plz tell me for my problem  Hi Friend, Declare 

Java Beginners

hi - Java Beginners
hi  hi sir,Thanks for ur coporation, i am save the 1 image... that image is rendered to my frame,that's my question  Hi Friend...("Frame in Java Swing"); f.getContentPane().setLayout(null); l=new JLabel 

Java Beginners

hi - Java Beginners
hi  hi sir, i am entering the values to jtable at run time,i don't know how many rows i am fill in that jtable ,that may be 1 or 2 or 3 etc... the table ,plz provide the solution for me .  Hi Friend, Try the following 

Java Beginners

hi - Java Beginners
hi  hi sir,how to place the database records into jtable ,i am using the oracle database plz provide the program how to retrieve the database records and placed into a jtable plzzzzzzzzzzzzzzz  Hi Friend 

Java Beginners

hi - Java Beginners
hi  hi sir,i want a program for when i am place the mouse cursor in textfield box then automatically 1 number is generated,again i am place..., plz provide the solution sir  Hi Friend, Try the following code 

Java Beginners

Hi... - Java Beginners
Hi...  Hi friends I want to make upload file module please help...please write the using mvc1 rule I have three field emp_id,name,file...; Hi Friend, Try the following code: 1)page.jsp: Display file 

Java Beginners

Hi ...CHECK - Java Beginners
Hi ...CHECK  Hi Da..sakthi Here RUN THIS CODE ----- package bio; import java.lang.*; import java.awt.*; import java.awt.Color; import... "); Screen.showMessage(" DON WORRY WE'ILL ROCK "); } } }   Hi 

Java Beginners

Hi.. - Java Beginners
Hi..  Hi friends, I want to display two calendar in my form,one is dislay successfully but another is not please tell me how display second... is successfully but date of birth is not why...   Hi Friend, Try 

Java Beginners

hi - Java Beginners
hi  hi sir,when i am enter a one value in jtextfield the related values to that value (which is already existed in database) is came to my... phone no sir  Hi Friend, Try the following code: import 

Java Beginners

hi - Java Beginners
hi   hi sir,thanks for providing the datepicker program but i want to create a datepicker class in my package and i want to use that datepicker... in more times ,plz provide sir Thanks in advance  Hi 

Java Beginners

hi - Java Beginners
Sorting String  Looking for an example to sort string in Java.  HiShortString.javaimport java.util.*;import java.io.*;public class ShortString{ String [] words = { "sontosh","Amardeep", " 

Java Beginners

hi - Java Beginners
hi   hi sir,when i am add a jtable record to the database by using the submit button,then nullpointer exception is arised,plz see this program and resolve this sir,plzzzzzz submit=new JButton("SUBMIT 

Java Beginners

hi - Java Beginners
hi  hi sir,u provide a answer for datepicker,but i don't know how to embed that datepicker to my panel This is my panel code,plz provide steps,how to embed the datepicker code to my panel. This is my 

Java Beginners

hi - Java Beginners
/components/table.html Best Regards.  Hi Friend, Try the following 

Java Beginners

hi - Java Beginners
,plzzzzzzzzzzzzzzzzzzzzzzzzzzzz, i am declare the final for jtextfields   Hi 

Java Beginners

Hi - Java Beginners
 

Java Beginners

hi - Java Beginners
 

Java Beginners

Hi..
Hi..  what are access specifier available in java 

Java Beginners

Hi..
Hi..  null is a keyword.True/False?   hi friend, In Java true, false and null are not a Java keyword they are literals in Java. For reading in detail go through the following link The null keyword 

Java Beginners

Hi..
Hi..  what are the steps mandatory to develop a simple java program?   To develop a Java program following steps must be followed by a Java developer : First of all the JDK (Java Development Kit) must be available 

Java Beginners

hi
hi  what are access modifiers available in java 

XML Questions

hi
online multiple choice examination  hi i am developing online multiple choice examination for that i want to store questions,four options,correct answer in a xml file using jsp or java?can any one help me?   Please 

Java Beginners

hi!
hi!  how can i write aprogram in java by using scanner when asking user to enter element user will be free to enter any type that he/she wants to to enter, like(int,double,float,String,....) thanx for answering....   Hi 

HTML Questions

hi
logic for prime number  Logic for prime number in Java.   HTML Tutorials 

Java Beginners

Hi
Hi   I need some help I've got my java code and am having difficulty to spot what errors there are is someone able to help import java.util.Scanner; public class Post { public static void main(String[] args) { Scanner sc 

Java Beginners

hi
hi  what are the steps mandatory to develop a simple java program? what is default value for int type of local variable? what are the keywords available in simple HelloWorld program? Class is a blueprint of similiar objects(True 

Java Beginners

hi
update in db ....so with out using javascript ...only html,java,db should 

Java Beginners

hi
update in db ....so with out using javascript ...only html,java,servlets,db 

Java Beginners

hi
update in db ....so with out using javascript ...only html,java,servlets,db 

Java Beginners

hi
update in db ....so with out using javascript ...only html,java,servlets,db 

Programming Tutorials

Java Swing Compute Factorial
Java Swing Compute Factorial In this section, we are going to find the factorial of a given number. Here an user is allowed to enter a number into the text field whose factorial is to be determined. On pressing the button the value 

Java Beginners

Hi Friend.. Doubt on + - Java Beginners
} }   Hi friend, The Java language provides special support...Hi Friend.. Doubt on +   Hi friend... import java.io.*; class Plus { public static void main(String args[]) { int a=10; int b= 25 

Java Beginners

Hi...doubt on Packages - Java Beginners
..Explain me.  Hi friend, Package javax.mail The Java Mail API allows...Hi...doubt on Packages  Does import.javax.mail.* is already Existing Package in java.. I have downloaded one program on Password Authentication 

Java Beginners

Hi Friend.. Doubt on + - Java Beginners
Hi Friend.. Doubt on +   Hi friend... import java.io.*; class... } }   Hi friend, import java.io.*; class Plus{ public static...;java Plus A = 10 B = 25 Plus = 1025 

Java Beginners

Hi..Date Program - Java Beginners
Hi..Date Program  Hi Friend...thank for ur Valuable information... Its displaying the total number of days.. but i WANT TO DISPLAY THE NUMBER OF DAYS BY EACH MONTH...   Hi friend, Code to solve the problem 

Java Beginners

Hi Friend..IS IT POSSIBLE? - Java Beginners
Hi Friend..IS IT POSSIBLE?  Hi Friend...Thank u for ur valuable response.. IS IT POSSIBLE FOR US? I need to display the total Number od days by Each month... WAIT I WILL SHOW THE OUTPUT 

Java Beginners

Hi ..doubt on DATE - Java Beginners
Hi ..doubt on DATE  Hi Friend...Thank u for ur valuable response.. IS IT POSSIBLE FOR US? I need to display the total Number od days by Each month... WAIT I WILL SHOW THE OUTPUT: --------------------------------- ENTER 

Java Beginners

Hi .Again me.. - Java Beginners
Hi .Again me..  Hi Friend...... can u pls send me some code...... REsponse me..  Hi friend, import java.io.*; import java.awt....://www.roseindia.net/java/example/java/swing/ Thanks.  I am sending running code 

Java Beginners

Hi..Again Doubt .. - Java Beginners
Hi..Again Doubt ..  Thank u for ur Very Good Response...Really great.. i have completed that.. If i click the RadioButton,,ActionListenr should get... WORRY WE'ILL ROCK "); } } }   Hi Can u send your MainMenu.java 

JSP Tutorials

Finding a Factorial using while loop
Finding a Factorial using while loop   ... are going to find out the factorial of 12 by using the while loop. In while loop... the scriptlet to calculate the factorial of 12. In the scriptlet we generally writes 

JSP Tutorials

Finding a Factorial using while loop
Finding a Factorial using while loop      In this example we are going to find out the factorial of 12 by using... gets true. We are using the scriptlet to calculate the factorial of 12 

Java Beginners

Java Program - Java Beginners
Java Program  Write a program to find the Factorial of a number using Recursion. Factorial can be defined as Factorial(n) = 1 * 2 * 3 ?.* (n-1) * n.  Hi Friend, Try the following code: class 

Java Beginners

Hi..How to Display Days by month - Java Beginners
Hi..How to Display Days by month  Hi Friend.... I have a doubt... to students.... ..Thank u ..   Hi Prabhu g I am sending... to you in solving your query regarding javadate. http://www.roseindia.net/java 

Java Beginners

Hi ..I am Sakthi.. - Java Beginners
Hi ..I am Sakthi..  can u tell me Some of the packages n Sub... that is available in java and also starts with javax. package HEMAL RAJYAGURU  Hi friend, package javacode; import javax.swing.*; import 

Java Beginners

Hi Friend ..Doubt on Exceptions - Java Beginners
Hi Friend ..Doubt on Exceptions  Hi Friend... Can u please send some Example program for Exceptions.. I want program for ArrayIndexOutOfbounds OverFlow Exception.. Thanks... Sakthi  Hi friend, Code 

Java Beginners

Hi .Difference between two Dates - Java Beginners
Hi .Difference between two Dates  Hi Friend.... Thanks for ur Very good response.. Can u plz guide me the following Program.... difference... Separately... Reply me .... Thanku   Hi friend, Code to solve 

Java Beginners

hi sakthi prasanna here - Java Beginners
hi sakthi prasanna here  import java.lang.*; import java.awt....) { e.printStackTrace(); } // TODO: handle exception }}}   Hi friend...://www.roseindia.net/java/example/java/awt/ Thanks 

Java Beginners

Hi da SAKTHI ..check thiz - Java Beginners
Hi da SAKTHI ..check thiz  package bio;//LEAVE IT import java.lang.... "); } } }   Hi friend, Plz give details of "MainMenu.java" to solve the problem : http://www.roseindia.net/java/example/java/awt 

Java-Tutorials

Factorial Program in Java
Factorial program in Java helps programmer to write factors of any given... exception". Example of Factorial program in Java: import java.io.*; class... execution of the program. BufferReader is defined under the Java I/O package 

Java Beginners

java - Java Beginners
java  how to wtite a program that evaluates the series for some integer n input by the user where n! is a factorial of n  Hi Friend, Please clarify your problem. Do you want to print the factorial of a number 

Java Beginners

find the factorial
find the factorial  how to find the factorial through the while loop...) { int value = 5, factorial = 1, temp = value; while (temp > 0) { factorial *= temp; temp 

Java Beginners

factorial of fibonacci
factorial of fibonacci   A code for the factorial of a fibonacci series. Example when the user enters 6, the fibonacci series is 8 and the factorial will be 8! or 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1. So if the user enters the number 6 

Java Tips and Examples

Write a program to calculate factorial of any given number
Factorial Examples - Java Factorial Example to calculate factorial of any...; This Java programming tutorial will teach you the methods for writing program to calculate factorial of any given number. First of all define a class 

Java Beginners

Hi Friend...Doubt on Uni Cast & Multi Cast - Java Beginners
Hi Friend...Doubt on Uni Cast & Multi Cast  Hi Friend.. Can u plz send some Details about the Uni CAst & Multi cast in JAVA...  Hi... once it's on the network Thanks  Hi friend, Unicast means 

Java Beginners

Hi Friend. on Default Data type Values - Java Beginners
Hi Friend. on Default Data type Values  Hi ... I have doubt on Default Data types... Is it Possible to print the Dafault Values..If it s so, Check...); } }   Hi friend, Code to solve the problem : import java.io. 

JRuby

Calculating factorial in JRuby
Calculating factorial in JRuby   ... in this example you will know to "Calculate Factorial in JRuby". In this example we have defined a function factorial( number) which takes the number 

Java Beginners

hi.. i hv few error. pls. - Java Beginners
hi.. i hv few error. pls.  hi sir, i have few error. can u pls help me. pls. im very new in java. ths my Uni assgmnt. please help me... import java.io.*; public class nathan { String title[]={"Biography 

Java Beginners

hi friend
hi friend   what is code for ``find no of days difference in the date of birth of two students using inner class in java 

Advertisements Advertisements
 

 

 

DMCA.com