Skip to content
Snippets Groups Projects
Commit 2f41f53b authored by zabiulla.ahmadi's avatar zabiulla.ahmadi
Browse files

update last changes

parent 1fa0e4b2
No related branches found
No related tags found
No related merge requests found
......@@ -22,8 +22,6 @@ import Professional.Professional;
public class Application extends Helper {
List<Contacts> contactsList = new ArrayList<>();
public void saveContactList(List<Contacts> contactsList) {
ObjectMapper objectMapper = new ObjectMapper();
......@@ -107,7 +105,6 @@ public class Application extends Helper {
Object obj = jsonParser.parse(reader);
var contactList = (JSONArray) obj;
contactList.forEach(contact -> parseContact(contact));
} catch (IOException | org.json.simple.parser.ParseException e) {
......@@ -453,6 +450,7 @@ public class Application extends Helper {
scanner.close();// close scanner
}
}
public List<Contacts> getContactList() {
return this.contactsList;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment