if (line.equals(".")) {
end = true;
}
- if (line.length() != 0) {
+ if (!line.isEmpty()) {
Message oMsg = new Message(randName, line, Calendar.getInstance());
client.sendoMsg(oMsg);
System.out.println(Thread.currentThread().getName() + " a envoye " + oMsg);