![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
I don't know if this works, but...
private static String makeStr(int num) {
return new String((char)('a' + num / 26)) + (char)('a' + num % 26);
} |
|
|
|
|
|
#12 |
|
Expert Programmer
|
Jimbo, that works, but with a little modification:
private static String makeStr(int num) {
return String.valueOf((char)('a' + num / 26)) + (char)('a' + num % 26);
}private static String makeStr(int num) {
return new String(new char[]{ (char)('a' + num / 26), (char)('a' + num % 26) });
} |
|
|
|
|
|
#13 | |
|
Newbie
|
Quote:
![]() |
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|