Files
Testate/WS2526/Testat 3b/StringListSerializer.java
T

32 lines
755 B
Java

import java.nio.file.Path;
import java.util.Arrays;
import java.util.List;
/**
* Serializes a list of strings to a file and deserializes a list of strings
* from a file.
*/
public class StringListSerializer {
/**
* Writes a list of strings to a file.
*
* @param path the path to the file
* @param list the list of strings to write
*/
public void write(Path path, List<String> list) {
// TODO: implement
}
/**
* Reads a list of strings from a file.
*
* @param path the path to the file
* @return the list of strings read from the file
*/
public List<String> read(Path path) {
// TODO: implement
return Arrays.asList("Not", "implemented", "yet");
}
}