Libraryless. Click here for Pure Java version (47L/1K/2K).
1 | !747 |
2 | |
3 | m {
|
4 | p {
|
5 | S name = ManagementFactory.getRuntimeMXBean().getName(); |
6 | print(quote(name)); |
7 | S pid = name.replaceAll("@.*", "");
|
8 | print(quote(pid)); |
9 | } |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, dhtvkmknsjym, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1001121 |
| Snippet name: | RuntimeMXBean test (get current process ID) |
| Eternal ID of this version: | #1001121/1 |
| Text MD5: | edc24daf3b077129c1e0ea40901a58d9 |
| Transpilation MD5: | 6c754dfb690f376ebc44d0c55321bd70 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-09-22 19:53:12 |
| Source code size: | 178 bytes / 10 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 848 / 936 |
| Referenced in: | [show references] |