title: How to retrieve the data type of a unknown data type input by user in Object class, but it taking it as a string by default?
body: <pre><code>Scanner in=new Scanner(System.in);
  Object o=in.next().getClass().getSimpleName();
  System.out.println(o);
  </code></pre>
  
  <ul>
  <li>it is showing string data type when input is taken by user</li>
  <li>it is showing correct data type when data is initialized in the code.</li>
  </ul>