我有这样的课。。
public static class FlightInfoDetails {
static String FlightNumber;
static String DepartureDate;
static String DepartureTime;
public static void setFlightNumber(String pstrData) {
FlightNumber= pstrData;
}
public static void setDepartureDate(String pstrData) {
DepartureDate = pstrData;
}
public static void setDepartureTime(String pstrData) {
DepartureTime = pstrData;
}
public static String getFlightNumber()
{
return FlightNumber;
}
public static String getDepartureDate()
{
return DepartureDate;
}
}
等等。一切都很好,但现在我需要处理多个
FlightInfoDetails
. 当我尝试调用该 set 方法时,以前的数据会丢失。有人可以帮忙吗?