title: Determine Generic Type Paramater in Scala
body: <p>Currently, I'm working with Scala language and I don't know how to determine the type of generic type.
  I have a class as following code.</p>
  
  <pre><code>class A[K, V]() {
    def print(): Unit = {
      //Check the real type here
    }
  }
  </code></pre>
  
  <p>What I want to do is:</p>
  
  <ul>
  <li>If K is Int => Print out <code>It is an Integer</code></li>
  <li>If K is Long => Print out <code>It is a Long</code></li>
  <li>If K is String => Print out <code>It is a String</code></li>
  </ul>