public static String postpad(String s, int length, char c){ int needed = length - s.length(); if (needed <= 0){ return s; } StringBuffer sb = new StringBuffer(length); sb.append(s); for (int i=0; i<needed; i++){ sb.append(c); } return (sb.toString());
public static String postpad(String s, int length){ return postpad(s, length, ' ');
	public static String postpad(String s, int length, char c){		int needed = length - s.length();		if (needed <= 0){			return s;		}		StringBuffer sb = new StringBuffer(length);		sb.append(s);		for (int i=0; i<needed; i++){			sb.append(c);		}		return (sb.toString());	}