All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rebelsky.util.TextUtils

java.lang.Object
   |
   +----rebelsky.util.TextUtils

public class TextUtils
extends Object
An assortment of utilities for text processing.

These utilities are more imperative than object-oriented, but they meet some common needs that seem best handled imperatively.

Copyright (c) 1998 Samuel A. Rebelsky. All rights reserved.


Constructor Index

o TextUtils()

Method Index

o formatDate(Date)
Format a date in a format like "Monday, January 19, 1998".
o numString(int, int)
Convert a number to a simple string of at least a desired length, adding leading zeros when appropriate.

Constructors

o TextUtils
 public TextUtils()

Methods

o numString
 public static String numString(int num,
                                int length)
Convert a number to a simple string of at least a desired length, adding leading zeros when appropriate.

o formatDate
 public static String formatDate(Date date)
Format a date in a format like "Monday, January 19, 1998".


All Packages  Class Hierarchy  This Package  Previous  Next  Index