Hints are declared now

git-svn-id: http://webgoat.googlecode.com/svn/trunk/webgoat@304 4033779f-a91e-0410-96ef-6bf7bf53c507
This commit is contained in:
wirth.marcel 2008-04-08 11:40:36 +00:00
parent 9130ab3e22
commit ff380181cd

View File

@ -142,13 +142,14 @@ public abstract class LessonAdapter extends AbstractLesson
{
List<String> hints = new ArrayList<String>();
hints.add("There are no hints defined.");
return hints;
}
public String getHint(WebSession s, int hintNumber)
{
return (String) getHints(s).get(hintNumber);
String hint = "Hint: ";
hint += (String) getHints(s).get(hintNumber);
return hint;
}
/**