Here’s the code needed (C#) to iterate through the lists collection in a web application, and display them on a page, using a literal control for each one.

SPWeb myWeb = SPContext.Current.Web;
for each (SPLIst mylist in myWeb.Lists)
{
Controls.Add(new LiteralControl(mylist.Title + @"
"));
}