Monday, November 28, 2005

display 4.7 4.8

package aaa;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;


public class DateFourthTry
{
private String month;
private int day;
private int year;

public String toString( )
{
return (month + " " + day + ", " + year);
}

public void writeOutput( )
{
System.out.println(month + " " + day + ", " + year);
}



public boolean equals(DateFourthTry otherDate)
{
return ( (month.equals(otherDate.month))
&& (day == otherDate.day) && (year == otherDate.year) );
}

public boolean precedes(DateFourthTry otherDate)
{
return ( (year < year ="="" year ="="" month =" monthString(newMonth);" day =" aday;" year =" ayear;" keyin=" new" month =" keyin.readLine(" day =" keyin.read(" year =" keyin.read(" date1 =" new" date2 =" new" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/4172/1585/1600/2222.0.jpg">

0 Comments:

Post a Comment

<< Home