title: How to declare a byte array in Scala?
body: <p>In Scala, I can declare a byte array this way</p>
  
  <pre><code>val ipaddr: Array[Byte] = Array(192.toByte, 168.toByte, 1.toByte, 9.toByte)
  </code></pre>
  
  <p>This is too verbose. Is there a simpler way to declare a Byte array, similar to Java's </p>
  
  <pre><code>byte[] ipaddr = {192, 168, 1, 1};
  </code></pre>
  
  <p>Note that the following results in an error due to the <code>.</code> in the String</p>
  
  <pre><code>InetAddress.getByAddress("192.168.1.1".toByte)
  </code></pre>