public class StringExtremityPrinter
extends java.lang.Object
Constructor and Description |
---|
StringExtremityPrinter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
printextremity(java.lang.String payload,
int charnumber)
Generates a string providing the 'charnumber' elements
at each side of the string
|
public static java.lang.String printextremity(java.lang.String payload, int charnumber)
payload
- the string to audit. It can be null
or smaller than 2x charnumbercharnumber
- number of chars to audit at each end