

import java.util.Date;
public class Time{
Date Intime;
Date Outtime;
public Time(Date intime, Date outtime) {
super();
Intime = intime;
Outtime = outtime;
}
@Override
public String toString() {
return "Time [Intime=" + Intime + ", Outtime=" + Outtime + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((Intime == null) ? 0 : Intime.hashCode());
result = prime * result + ((Outtime == null) ? 0 : Outtime.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Time other = (Time) obj;
if (Intime == null) {
if (other.Intime != null)
return false;
} else if (!Intime.equals(other.Intime))
return false;
if (Outtime == null) {
if (other.Outtime != null)
return false;
} else if (!Outtime.equals(other.Outtime))
return false;
return true;
}
public Date getIntime() {
return Intime;
}
public void setIntime(Date intime) {
Intime = intime;
}
public Date getOuttime() {
return Outtime;
}
public void setOuttime(Date outtime) {
Outtime = outtime;
}
public static void main(String[] args){
System.out.println("intime"+8.30);
System.out.println("outtime is"+3.00);
System.out.println("student is prgnt");
}
}

import java.util.Date;
public class Time{
Date Intime;
Date Outtime;
public Time(Date intime, Date outtime) {
super();
Intime = intime;
Outtime = outtime;
}
@Override
public String toString() {
return "Time [Intime=" + Intime + ", Outtime=" + Outtime + "]";
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((Intime == null) ? 0 : Intime.hashCode());
result = prime * result + ((Outtime == null) ? 0 : Outtime.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Time other = (Time) obj;
if (Intime == null) {
if (other.Intime != null)
return false;
} else if (!Intime.equals(other.Intime))
return false;
if (Outtime == null) {
if (other.Outtime != null)
return false;
} else if (!Outtime.equals(other.Outtime))
return false;
return true;
}
public Date getIntime() {
return Intime;
}
public void setIntime(Date intime) {
Intime = intime;
}
public Date getOuttime() {
return Outtime;
}
public void setOuttime(Date outtime) {
Outtime = outtime;
}
public static void main(String[] args){
System.out.println("intime"+8.30);
System.out.println("outtime is"+3.00);
System.out.println("student is prgnt");
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.