Class Utils


  • public class Utils
    extends Object
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • ShuffleFileContents

        public static void ShuffleFileContents​(File inputFile,
                                               File outputFile)
                                        throws IOException
        shuffles the contents of a file on a sentence level
        Parameters:
        inputFile -
        outputFile -
        Throws:
        IOException
      • writeFile

        public static void writeFile​(File filename,
                                     List<String> lines)
        writes ArrayList into file. Here, we assume that each element of the ArrayList is a String, which we write as new line into the file.
        Parameters:
        filename - full path
      • writeFile

        public static void writeFile​(File filename,
                                     String myString)