title: Getting the computer name in Java
body: <p>I was wondering if there is a way to get the computer name in Java? I have seen several answers that feature <code>java.net.InetAddress</code>. However I was wondering if there is a way that does not use the network?</p>
  
  <p>(As a side question, is the computer name only a network thing anyway, so therefore has to be done this way??)</p>