Well, I don't know Java, but I can give you an idea I came up with in psudo-code. Something I forgot about when I was doing C++ and manipulating numbers, is you can use
math to manipulate numbers, rather than string operations.
In this case, what you can do, is pick off the ending number of your original number, and stick it onto the front your new number. This may look something like this (in C++).
CODE
int myNumber = 1234;
int newNumber = 0;
int numberTemp = 0;
while(myNumber > 0){
// Cut the last number off using modulus (remainder after division)
numberTemp = myNumber % 10;
// Take that our of our number for the next iteration
myNumber = (myNumber - numberTemp) / 10;
// Multiply it into our new number
newNumber = newNumber * 10 + numberTemp;
}
How this works is the modulus will find the remainder of the number divided by ten. So in the example, it would be 1234/10, remainder is that 4. Then, we subtract that number from the original, making this 1234-4=1230. Dividing this by ten will make it reduced by one place, 1230/10=123, making it ready for the next iteration to be broken down again. Then, we take that remainder to build our new number by taking our new number, which at this point is just 0, and multiplying by ten to add a new place value. Adding the remainder number puts it on the end, 0+4=4. Now on the second iteration of the loop, as this will repeat until our original number is not able to be divided again, will make it 123%10=3, (123-3)/10=12, 4*10+3=43.
I've just tested this with JavaScript in a console and it works how you'd want it.
Oh, I just got this all typed and realized you said no looping allowed... may I ask why? Recursion seems redundant in this case and totally un-necessary...
Oh well, should atleast show you that you can use math to get this accomplished and be able to tweak it to return an int like you want.