title: java equivalent for scala classOf[]
body: <p>Can any one help me with the Java equivalent of this?</p>
  
  <pre><code>wordCountRDD.saveAsNewAPIHadoopFile(outputFile,classOf[Text],classOf[IntWritable],classOf[TextOutputFormat[Text,IntWritable]])
  </code></pre>
  
  <p>I tried below : but it give me error at                         TextOutputFormat&lt;>(Text,IntWritable) ..</p>
  
  <pre><code>wordCountRDD.saveAsNewAPIHadoopFile(
                          output,
                          Text.class,
                          IntWritable.class,
                          TextOutputFormat&lt;&gt;(Text,IntWritable)
                          context.hadoopConfiguration());
  </code></pre>