public static String padRight(String s,int n){
  return String.format("%1$-" + n + "s",s);
}

public static String padRight ( String s , int n ) { return String . format ( "%1$-" + n + "s" , s ) ; }
pad white space to the right of the string to the given length
