Class LetterU
java.lang.Object
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. |
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).
toString
public String toString()
- Computes a string representing the letter U.
- Overrides:
toString
in class Object
- Returns:
- a string consisting of * and newline characters