Class LetterU

java.lang.Object
  extended by LetterU

public class LetterU
extends Object

This class describes Letter U objects that can be displayed using asterisks and new lines


Constructor Summary
LetterU(int aHeight, int aWidth)
          Constructs a letter U object.
 
Method Summary
 String toString()
          Computes a string representing the letter U.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LetterU

public LetterU(int aHeight,
               int aWidth)
Constructs a letter U object.

Parameters:
aHeight - the height of the letter (number of * on first/last column).
aWidth - the width of the letter (number of * on last row).
Method Detail

toString

public String toString()
Computes a string representing the letter U.

Overrides:
toString in class Object
Returns:
a string consisting of * and newline characters