### Question:
ActionRDD { private void checkResult(List<?> collect) { for (Object o : collect) { System.out.println(o.toString()); } }  void testReduce(); @Transient Tuple2 getReduce(Tuple2<Integer, Integer> x, Tuple2<Integer, Integer> y); void testCollect(); void testCount(); void testFirst(); void testTake(); void testCountByKey(); void testForEach();  }### Answer:
@Test public void testCollect() { JavaRDD<String> stringJavaRDD = sparkContext.textFile(FILE_PATH); List<String> collect = stringJavaRDD.collect(); checkResult(collect); }