we need to convert the below code written in scala/spark to java/spark.
val path = "C:\\\\Spark" val emp = spark.sparkContext.textFile(path+"\