X-Git-Url: https://git.piment-noir.org/?p=TD_SR.git;a=blobdiff_plain;f=TD2%2FIHM%2FIHM.java;fp=TD2%2FIHM%2FIHM.java;h=5a43687654e919f5b1a45c29905736824b7d6563;hp=22624fcc9a8749b12819655f7a33dbf260094993;hb=03a13b6164d44f0c74e5cd180abecbb8e0dda30a;hpb=73a5e231a2e60b6a4e141b89ff56208dcf225b0b diff --git a/TD2/IHM/IHM.java b/TD2/IHM/IHM.java index 22624fc..5a43687 100644 --- a/TD2/IHM/IHM.java +++ b/TD2/IHM/IHM.java @@ -94,7 +94,7 @@ public class IHM implements ActionListener { e.printStackTrace(); } String mess = (String)sendMessages.remove(0); - if (mess.length() == 0) + if (mess.isEmpty()) return ""; System.out.println("IHM -> message a envoyer : " + mess); return randName + "> " + mess;