/22@yegor256 5
class Book {
private int isbn;
private String title;
public setIsbn(int isbn) {
this.isbn = isbn;
}
public setTitle(String title) {
this.title = title;
}
}
/22@yegor256 6
class Book {
private final int isbn;
private final String title;
public Book(int isbn, String title) {
this.isbn = isbn;
this.title = title;
}
}
/22@yegor256 21
List<String> x = new CachedList<>(
new AllCaps( // List<String>
new OneColumn( // List<String>
new CSV( // List<List<String>>
new LinesFromStream( // List<String>
new FileInputStream(
new File(“/tmp/names.csv”)
)
)
),
3
)
)
);