5.22部落格

张佳木發表於2024-06-16

還是上午計網下午建民老師的課,晚上又是跑步,今天跑得慢了點但是足足有七公里

學習內容:安卓

package com.example.app_02.entity;

public class Record {
private String startTime;
private String endTime;
private String record;

public Record() {
}

public Record(String startTime, String endTime, String record) {
this.startTime = startTime;
this.endTime = endTime;
this.record = record;
}

/**
* 獲取
*
* @return startTime
*/
public String getStartTime() {
return startTime;
}

/**
* 設定
*
* @param startTime
*/
public void setStartTime(String startTime) {
this.startTime = startTime;
}

/**
* 獲取
*
* @return endTime
*/
public String getEndTime() {
return endTime;
}

/**
* 設定
*
* @param endTime
*/
public void setEndTime(String endTime) {
this.endTime = endTime;
}

/**
* 獲取
*
* @return record
*/
public String getRecord() {
return record;
}

/**
* 設定
*
* @param record
*/
public void setRecord(String record) {
this.record = record;
}

public String toString() {
return "startTime: " + startTime + ", endTime: " + endTime + "\nrecord: " + record + "\n";
}
}