-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFile.java
44 lines (34 loc) · 861 Bytes
/
File.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package projectOS;
import java.io.Serializable;
public class File implements Serializable {
private String fileName;
private String filePath;
private int wordCount;
public File(String fileName, String filePath, int wordCount) {
this.fileName = fileName;
this.filePath = filePath;
this.wordCount = wordCount;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public String getFilePath() {
return filePath;
}
public void setFilePath(String filePath) {
this.filePath = filePath;
}
public int getWordCount() {
return wordCount;
}
public void setWordCount(int wordCount) {
this.wordCount = wordCount;
}
@Override
public String toString() {
return "File [fileName=" + fileName + ", filePath=" + filePath + ", wordCount=" + wordCount + "]";
}
}