Problem:
Write an application that prints a list of four or five web sites
that you enjoy. Print both the site name and the URL.
that you enjoy. Print both the site name and the URL.
Output:
Not available.
Solution:
class WebSites
{
//-----------------------------------------------------------------
// Prints some web site URLs.
//-----------------------------------------------------------------
public static void main (String[] args)
{
System.out.println ("Adsense:");
System.out.println ("http://adsense.com");
System.out.println ();
System.out.println ("Wikipedia:");
System.out.println ("http://wikipedia.org");
System.out.println ();
System.out.println ("Technorati:");
System.out.println ("http://technorati.com");
System.out.println ();
System.out.println ("Joel on Software (Joel Spolsky's Blog):");
System.out.println ("http://www.joelonsoftware.com");
System.out.println ();
System.out.println ("College Humor:");
System.out.println ("http://www.collegehumor.com");
}
}
No comments :
Post a Comment