title: Is there a functionality in Java similar to C#'s anonymous types?
body: <p>I was wondering if there exists a similar functionality in Java similar to C#'s anonymous types:</p>
  
  <p><code>var a = new {Count = 5, Message = "A string."};</code></p>
  
  <p>Or does this concept go against the Java paradigm?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I suppose using <code>Hashable()</code> in Java is somewhat similar.</p>