17 lines
238 B
Java
17 lines
238 B
Java
|
public enum Direction {
|
||
|
Up ("U"),
|
||
|
Down ("D"),
|
||
|
Left ("L"),
|
||
|
Right ("R");
|
||
|
private String direct;
|
||
|
Direction(String d)
|
||
|
{
|
||
|
direct = d;
|
||
|
}
|
||
|
public String getDirect()
|
||
|
{
|
||
|
return direct;
|
||
|
}
|
||
|
|
||
|
}
|