It's me again with a problem
Here's a bit of code. The problem that I have is that it doesn't print out the books of a certain writer.
public void findWriter(String w) {
Collator co = Collator.getInstance();
co.setStrength(Collator.PRIMARY);
System.out.println("Books that" + w + " written:");
for (int i = 0; i < antal; i++) {
if (co.compare(reg.findWriter(),w) == 0) {
System.out.println(reg);
}
}
antal are the number of books in the array. reg is the array.
Here's a bit of code. The problem that I have is that it doesn't print out the books of a certain writer.
public void findWriter(String w) {
Collator co = Collator.getInstance();
co.setStrength(Collator.PRIMARY);
System.out.println("Books that" + w + " written:");
for (int i = 0; i < antal; i++) {
if (co.compare(reg.findWriter(),w) == 0) {
System.out.println(reg);
}
}
antal are the number of books in the array. reg is the array.
Buy on AliExpress.com