Please read

Hi, I have a homework to finish I was giving two codes (java), I have to somehow fit what I have in one code into the other
it should be quick but I have some doubts about what can be changed in order to implement the code in thew other one

requirement:
hone numbers and PIN codes can be easier to remember when you find words that spell out
the number on a standard phone pad. For example, instead of remembering the combination
5282, you can just think of JAVA.
Write a recursive method that given a number, yields all possible spellings (which may or may
not be real words)

find the cost of your paper