class Morse { public static void main(String[] args) { DotDash d1, d2, d3; d1 = new DotDash('.'); d2 = new DotDash('-'); d3 = new DotDash(' '); d1.start(); d2.start(); d3.start(); } }
try{ sleep((int)(Math.random() * 10)); } catch (InterruptedException e){ e.printStackTrace(); }
. .- .-.- .- .- -. -. -. -..- . - .. -.- -. . -. -. ..- . -.- - . -. - -. .-. .- --- . ..- .... -. . -. - .-.--- .- - .- . -. -. -.---.- .- --.- . --- . . .- .-. -. ---. - . - - -.- . -.-. - -. . . -. -. ...- -. . . . -. --. - . . . . -. -