Answer to Question #16791 in Java | JSP | JSF for Tolu Banjo
How to read an input file line by line and scramble each word on that line. Once those words are scrambled you must print the line out with the words in the original order (but scrambled) to an output file. This process repeats for each line of the input file.
With each line from the input file you will also print the original words from that line to the screen but sorted by their length rather than alphabetical order.
Do not use ArrayList
Do not use .asList()
Do not use anything that is called like: Collections.someMethod()
Use String .split(" ") that is built into String
Use String .toCharArray() that is built into String
Use Random .nextInt()
You must write the loop that shuffles the letters of the String by calling .nextInt(
And swapping letters.
Unfortunately, your question requires a lot of work and cannot be done for free. Submit it with all requirements as an assignment to our control panel and we'll assist you.