Курсовая работа: Объектно-ориентированное программирование
}
private int n=0;
}
class MyTimer extends JFrame
{
public MyTimer()
{
setSize(650,350);
setTitle("Your answer");
try
{
FileInputStream is = new
FileInputStream(new
File("C:\\USER\\NOW.txt"));
DataInputStream ids = new DataInputStream(is);
S2=ids.readUTF();
GregorianCalendar d = new GregorianCalendar();
int year=d.get(Calendar.YEAR);
int mouth=d.get(Calendar.MONTH);
int day=d.get(Calendar.DAY_OF_MONTH);
int hour=d.get(Calendar.HOUR);
int minute=d.get(Calendar.MINUTE);
int seconds=d.get(Calendar.SECOND);
FileInputStream is1 = new
FileInputStream(new
File("C:\\USER\\Time.txt"));
DataInputStream ids1 = new DataInputStream(is1);
String S22=ids1.readUTF();
int year_0=Integer.parseInt(S22);