tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Tools and Libs > Ostermiller Utilities > String Prepad

String Prepad 

Ostermiller Java Utilities contain various components such as CSV parsing, Base64 Encoding, MD5 digest, String and Exec Helper classes. This requires the library ostermillerutils-1.08.01.jar to be in classpath. The following example shows using StringHelper.prepad() API.

File Name  :  
Author  :  Sudhakar KV
Email  :  [email protected]
package com.bethecoder.tutorials.ostermillerutils;


import com.Ostermiller.util.StringHelper;

public class StringPrepadTest {

   @param args
   @throws IOException 
  public static void main(String[] argsthrows IOException {

    String str = StringHelper.prepad("9"6'*');
    str = StringHelper.prepad("999"6'*');
    str = StringHelper.prepad("999999"6'*');


It gives the following output,



Books Recommendation

bl  br