Ok. Here is the idea. We are to make a main method that calls upon a method (that accepts an int and returns a
string). The method cannot use simple methods such as toString or the such-- we have to do the conversion 'manually'. Well, I had it 'semi-working'.
The program would take the int, return the ASCII code equivalent ('0' = 48, '1' = 49, etc.), and it would be in reverse order... any ideas? I will post the code below just because it is really short (for the method-- main just takes an int and sends it, gets it back from the method and displays it with a few tests)
//here it is
public static String myIntToString(int num)
{
String stringNum = "";
int tempNum = num;
int lastDigit;
do
{
lastDigit = tempNum % 10;
stringNum = stringNum + (char)(lastDigit + 48);
tempNum = tempNum / 10;
}
while (tempNum != 0);
return stringNum;
}