public static String formatLong(long number, int length) {
    """
	Formats a long number and adds padding to the left.
	
	Very inefficient implementation, but a lot easier than to deal with the formatting API.
	
	@param number number to format
	@param length width of padding
	@return formatted number
    """
        return padLeft(format(Locale.US, "%,d", number), length);
    }
public static String formatLong(long number, int length) {
        return padLeft(format(Locale.US, "%,d", number), length);
    }
public static String formatLong ( long number , int length ) { return padLeft ( format ( Locale . US , "%,d" , number ) , length ) ; }
Formats a long number and adds padding to the left.

Very inefficient implementation, but a lot easier than to deal with the formatting API.

@param number number to format
@param length width of padding
@return formatted number
Formats a long number and adds padding to the left .