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()
Use .nextInt()
You must write the loop that shuffles the letters of the String by calling .nextInt(
modulus)
And swapping letters.
1
Expert's answer
2012-10-18T08:48:53-0400
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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment