Comment by elFarto
10 hours ago
You can also use a shebang and mark the file as executable on Linux:
#!/usr/bin/java --source 25
void main(String[] args) throws Exception {
var addr = java.net.InetAddress.getByName(args[0]);
System.out.println(addr);
}
No comments yet
Contribute on Hacker News ↗