write me a program to retrive the e-mails as per user name using
java.
--------------------------------------------------------------
class Mail{
private
String subject;
private String message;
private Date sentDate;
}
class MailRetriever{
public Mail[] getAllMails(String userName){
//Write code to retrive all mails for user "userName"
//and return a set of mail objects
}}
===========
output:
-----------
username :bala
subject message sentdate
hi this is
test message 17.11.08
hi1 this is second message 16.11.08
hi2 this is third message 15.11.08
username: basker
subject message sentdate
hi this is test message 17.11.08
hi1 this is second message 16.11.08
hi2 this is third message 15.11.08