forked from PeterQLee/JavaCryptography
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContacts.java
More file actions
23 lines (20 loc) · 597 Bytes
/
Contacts.java
File metadata and controls
23 lines (20 loc) · 597 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.ArrayList;
public class Contacts {
//housescontacts for the GUI, makes it simpler for user
private ArrayList<String> address;
private ArrayList<String> name;
public Contacts() {
}
public void addContact(String name, String address) {
//adds contacts to arraylist
}
public void removeContact(int ind) {
//removes contact from indexes
}
public ArrayList<String> getContacts() {
//returns arraylist of contacts
//in order of name, then address
//e.g. [Bob,192.168.2.1,Charley,127.0.0.1,Cameron,192.222.3.1..etc]
return null;
}
}