forked from VatsalBhuva11/OOM-MiniProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocument.java
More file actions
46 lines (39 loc) · 1.07 KB
/
Copy pathDocument.java
File metadata and controls
46 lines (39 loc) · 1.07 KB
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
45
46
import java.io.*;
import java.util.*;
import java.applet.*;
import java.awt.*;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Scanner;
@SuppressWarnings("serial")
public class Document {
public String name;
public int DocumentID;
public String category;
public String tag;
public String topic;
public static int counter;
public static String[] doc_name = new String[100];
public Document(String S, int id, String topic, String category, String tag) {
this.name = S;
this.DocumentID = id;
this.category = category;
this.tag = tag;
this.topic = topic;
}
public void getName() {
System.out.println(name);
}
public void getID() {
System.out.println(DocumentID);
}
public String rename(String s) {
this.name = s;
return s;
}
}