Update JavaSparkSQL.java

Changed code registerTempTable as registerAsTable since the previous code is not working