HINT: You do not have to understand the algorithm for converting from one base to another in order to do this assignment. One of the things I am suggesting is that generalizing a method can be a mechanical process you can perform without completely understanding the method.
![]() |
(1) |
HINT: You can compose String concatenation with the return statement in powerful ways. For example, if you have two pieces of the answer, you can assemble them and return them at the same time:
public static String example () {
String prefix = getPrefix ();
String suffix = getSuffix ();
return prefix + suffix;
}