Click to See Complete Forum and Search --> : rekursif method


kopi_jawa
December 21st, 2002, 04:38 AM
Hello all, i'm a beginner in java, i want ask to you all, how to make rekursif programm that implements user input and translate to word, ex:

input : 1000
output : one thousand


please help me.....,
remember this programm must use rekursif method!

ex:

public int test(int test){

if(test<2){
return test;
}
else{
return test*test(test-1);
}

dlorde
December 21st, 2002, 05:38 AM
What part are you having trouble with?