Sedang Disiapkan

Creating File Sorter Using Java

Below are the instructions for the Java exercise. Please email back the [url removed, login to view] 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.

Kemahiran: Java

Lihat lebih lanjut: how to sort a text file alphabetically in java, how to sort data in text file in java, java sort large text file, java sort files by name, java read text file and sort, java sort file contents alphabetically, c program to sort contents of a file, how do i sort records in a text file using java

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #14916395

Dianugerahkan kepada:

kahilH

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 Lagi

$20 USD dalam sehari
(3 Ulasan)
2.7

13 pekerja bebas membida secara purata $31 untuk pekerjaan ini

NovaSofts

Hello Sir/Ma’am We have been working on Freelancer for 2 years & providing the best services to our clients.You can see our profile for checking expertise.We can provide perfect Quality work. thanks Relevant Skills an Lagi

$30 USD dalam sehari
(116 Ulasan)
6.5
asadrana91

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 - Lagi

$133 USD dalam 3 hari
(76 Ulasan)
6.3
mahershahmeer

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 - Fil Lagi

$25 USD dalam sehari
(99 Ulasan)
5.7
$30 USD dalam sehari
(15 Ulasan)
5.7
$25 USD dalam sehari
(3 Ulasan)
4.5
$10 USD dalam sehari
(28 Ulasan)
4.3
microservices

Please award us the project Relevant Skills and Experience more than 5 years in java Proposed Milestones $15 USD - final

$15 USD dalam sehari
(17 Ulasan)
3.8
meetravig

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 $1 Lagi

$30 USD dalam sehari
(2 Ulasan)
1.3
$22 USD dalam sehari
(0 Ulasan)
0.0
$10 USD dalam sehari
(0 Ulasan)
0.0
MaryumAkhter1

I love to work in android applications recently worked on a mental health project in android and have a work experience of 1.5-2 years in this field, will love to work with you. Thank You Relevant Skills and Experienc Lagi

$30 USD dalam sehari
(0 Ulasan)
0.0
$25 USD dalam sehari
(0 Ulasan)
0.0