You have a method toString(...) in two overloaded forms with unknown implementations:
public static String toString(long num) {
return // some string
}
public static String toString(int num) {
return // some string
}
Distribute different method calls by the suitable methods (none of them might be suitable).