Sorry about that, I should have been more clear.
I don't really need any code fixes, just more of implementation suggestions.
Something as simple as
if (YourCodeHereForPowerOfTen(theinteger) == true)
System.out.println("sweet");
else
System.out.println("unsweet");
I thought of trying to just lop off the zeros but I wanted something more proper. I've also tried using
double i = Math.pow(10, theinteger);
to look for i=1 but it comes out to like 1.0E2, 1.0E3 etc and I cant figure out how to compare that without turning it to a string, comparing 1.0 with i.substring(0,2) but thats a whole lot of type changing. Anything smoother?