title: How to create a Java class, similar to a C++ template class?
body: <p>How do I write an equivalent of this in Java?</p>
  
  <pre><code>// C++ Code
  
  template&lt; class T &gt;
  class SomeClass
  {
  private:
    T data;
  
  public:
    SomeClass()
    {
    }
    void set(T data_)
    {
      data = data_;
    }
  };
  </code></pre>