Libraryless. Click here for Pure Java version (75L/1K/3K).
!747 m { static int score, max = 3; static boolean online; p { print("Online check!"); score = 0; check("tinybrain.de"); check("google.com"); check("bing.com"); online = score > 0; print("Score: " + score + "/3"); } static void check(S server) { boolean online = checkIfHttpServerIsOnline("tinybrain.de") == null; if (online) ++score; print(server + ": " + (online ? "ONLINE!" : "OFFLINE?")); } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1001115 |
Snippet name: | Online check! (verifies 3 servers) |
Eternal ID of this version: | #1001115/1 |
Text MD5: | d4698e4cdb24d74c20a4f09d35039b6c |
Transpilation MD5: | a29434c9bcace38e00e86e7604a21f61 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-22 18:05:57 |
Source code size: | 483 bytes / 23 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 731 / 742 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) |