sharkysoft.com

com.sharkysoft.string
Class StringToolbox

java.lang.Object
  extended bycom.sharkysoft.string.StringToolbox

public final class StringToolbox
extends java.lang.Object

Miscellaneous string functions.

Details: StringToolbox is a miscellaneous collection of functions for manipulating strings.

Author:
Sharky

Method Summary
static java.lang.String repeat(char icChar, int inCount)
          Creates string by repeating character.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

repeat

public static java.lang.String repeat(char icChar,
                                      int inCount)
Creates string by repeating character.

Details: repeat creates a new string by repeating a character. For example, the call

repeat('#', 3)

produces the string "###". A zero-length string is returned if the repeat count is less than 1.

Parameters:
icChar - the character to repeat
inCount - the repeat count
Returns:
the new string containing repeated characters

sharkysoft.com

Copyright © 1997-2004 Sharkysoft (sharkysoft.com). All rights reserved.