Below are the instructions for the Java exercise. Please email back the [login to view URL] file once you have completed the exercise.
Write a class called FileSorter which will read one or more text files and merge their contents, storing them in a collection of strings, one string per line, omitting blank lines. The class should provide an iterator over the strings in the collection in alphabetical order.
Here is a skeleton implementation:
public class FileSorter implements Iterable<String>
{
public void readFiles (String[] filePaths) throws IOException {
// TODO
}
public Iterator<String> iterator() {
// TODO
}
}
You can use any classes in the JDK 1.8 standard library. Pay attention to considerations such as error handling, thread safety, memory usage, performance, and code clarity and maintainability.
Hello,
i would like to do the exercice , please message me for more discussion
Relevant Skills and Experience
i am a developer , feel free to check my freelancer account
Proposed Milestones
$20 USD - full
Thank you.
$20 USD in 1 day
4.8 (26 reviews)
4.9
4.9
10 freelancers are bidding on average $33 USD for this job
Allow me to help? If you require quality and don't have much issues with the cost of it. Work would be commendable and provided in the required time!
Relevant Skills and Experience
Java
Proposed Milestones
$133 USD - Upon Satisfaction
Lets discuss details over chat?
Hi there!
I will deliver the Code in just 1-2 Hours. I will start writing it right now. Let me know if you are interested. Thanks
Relevant Skills and Experience
Java, DataStructure
Proposed Milestones
$25 USD - FileSorter
I read and understood requirements. I have got over 10 years of experience in Java. Let us connect and discuss the scope in detail.
Relevant Skills and Experience
Java
Proposed Milestones
$15 USD - Initial Payment
$15 USD - Upon project completion
When can we connect and discuss further on this.