Number to words in left to right direction
This code:

int i,j;
j=0;
while(no&gt;0){
    i = no%10;
    no /= 10;
    word[j] = words[i];
    j++;
}
for(int k= word.length;k&gt;0;k--)
{
    System.out.println(word[k-1]+" ");
}


can be drastically simplified to:

String numbers = String.valueOf(no);
for(int i = 0 ;i&lt;numbers.length(); i++){
    System.out.print(words[Character.getNumericValue(numbers.charAt(i))]+" ");
}




Or you may save save the user input as String (but make sure it only contains digits). You will have something like this:

 String numbers = br.readLine();
 for(int i = 0 ;i&lt;numbers.length(); i++){
    System.out.print(words[Character.getNumericValue(numbers.charAt(i))]+" ");
}