Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String[] disp = new String[]{
- "\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1",
- "\u25A0\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1",
- "\u25A0\u25A0\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1",
- "\u25A0\u25A0\u25A0\u25A1\u25A1\u25A1\u25A1\u25A1",
- "\u25A0\u25A0\u25A0\u25A0\u25A1\u25A1\u25A1\u25A1",
- "\u25A1\u25A0\u25A0\u25A0\u25A0\u25A1\u25A1\u25A1",
- "\u25A1\u25A1\u25A0\u25A0\u25A0\u25A0\u25A1\u25A1",
- "\u25A1\u25A1\u25A1\u25A0\u25A0\u25A0\u25A0\u25A1",
- "\u25A1\u25A1\u25A1\u25A1\u25A0\u25A0\u25A0\u25A0",
- "\u25A1\u25A1\u25A1\u25A1\u25A1\u25A0\u25A0\u25A0",
- "\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A0\u25A0",
- "\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A1\u25A0"
- };
- int indice = 0;
- while(sending) {
- try {
- String data = "\r" + disp[indice] + " " +
- "Attempting to send packet to " +
- address.toString() + ":" + port + "...";
- System.out.write(data.getBytes());
- if (indice < 12) indice++;
- if (indice >= 12) indice = 0;
- Thread.sleep(250);
- } catch (IOException | InterruptedException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment