All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nocrala.tools.utils.Filler Maven / Gradle / Ivy

Go to download

Java Text Table Formatter is a Java library that renders tables made of characters. The user add cells and can add format characteristics like predefined/custom table styles, text alignment, abbreviation, column width, border types, colspan, etc.

The newest version!
package org.nocrala.tools.utils;

public class Filler {

  public static String getFiller(final int width) {
    return getFiller(" ", width);
  }

  public static String getFiller(final String txt, final int width) {
    StringBuffer sb = new StringBuffer();
    for (int i = 0; i < width; i++) {
      sb.append(txt);
    }
    return sb.toString();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy