Class LetterL
java.lang.Object
LetterL
public class LetterL
- extends Object
This class describes Letter L objects that can be displayed
using asterisks and new lines
Constructor Summary |
LetterL(int aHeight,
int aWidth)
Constructs a letter L object. |
Method Summary |
String |
toString()
Computes a string representing the letter L. |
LetterL
public LetterL(int aHeight,
int aWidth)
- Constructs a letter L object.
- Parameters:
aHeight
- the height of the letter (number of * on first column).aWidth
- the width of the letter (number of * on last row).
toString
public String toString()
- Computes a string representing the letter L.
- Overrides:
toString
in class Object
- Returns:
- a string consisting of * and newline characters