MAC vendor lookup: Difference between revisions
Content added Content deleted
(Added Kotlin) |
(→{{header|J}}: Add J) |
||
Line 77: | Line 77: | ||
ASRock Incorporation |
ASRock Incorporation |
||
</pre> |
</pre> |
||
=={{header|J}}== |
|||
'''Solution |
|||
<lang j>require 'web/gethttp' |
|||
lookupMACvendor=: [: gethttp 'http://api.macvendors.com/'&,</lang> |
|||
'''Example Usage |
|||
<lang j> addr=: '88:53:2E:67:07:BE';'FC:FB:FB:01:FA:21';'D4:F4:6F:C9:EF:8D';'23:45:67' |
|||
(,&' ' , lookupMACvendor)&> addr |
|||
88:53:2E:67:07:BE Intel Corporate |
|||
FC:FB:FB:01:FA:21 Cisco Systems, Inc |
|||
D4:F4:6F:C9:EF:8D Apple, Inc. |
|||
23:45:67 Vendor not found</lang> |
|||
=={{header|Java}}== |
=={{header|Java}}== |
||
<lang java>package com.jamesdonnell.MACVendor; |
<lang java>package com.jamesdonnell.MACVendor; |