9 Replies Latest reply on Oct 14, 2008 1:22 AM by 807589

    Similar technique to .hasNext() for reading in multiple files?

      Hi, if I want to point to a directory and have a java app go through each of the files one by one to rename them according to a naming scheme (e.g. newFile1, newFile2,...), is there a technique similar to Scanner's hasNext method to navigate through the files and know when to stop?

      I haven't been able to find much while searching around.