I have question.
Is there something wrong in this code or are my general assumptions correct?
Program print good result and finished with exit code 0.
EDIT:
I added "mail.notifyAll();" in last line in run method in MailServer but still "Too long" info.
package com.codegym.task.task27.task2710;
/*
Arrange wait and notify methods
*/
public class Solution {
public static void main(String[] args) {
Mail mail = new Mail();
Thread server = new Thread(new MailServer(mail));
Thread amigo = new Thread(new Person(mail));
server.start();
amigo.start();
}
}