programmazione-java/src/Museo/Test.java

22 lines
735 B
Java
Raw Normal View History

2016-12-29 15:56:31 +00:00
import java.util.Scanner;
import java.io.File;
public class Test{
public static void main(String [] args) throws Exception{
Scanner scLibri=new Scanner(new File("Libri.dat"));
Scanner scMult=new Scanner(new File("OpereMult.dat"));
Scanner scStampe=new Scanner(new File("Stampe.dat"));
Archivio arch=new Archivio(scMult, scLibri, scStampe);
2016-12-29 16:36:27 +00:00
arch.filtroStringa(new FiltroTitolo(), "Titolo1").print(System.out);
System.out.println("****");
2016-12-30 12:56:17 +00:00
arch.filtroStringa(new FiltroAutore(), "Autore1").filtroPosizione("4D").print(System.out);
2016-12-29 16:36:27 +00:00
System.out.println("****");
2016-12-30 12:52:33 +00:00
arch.filtroStringa(new FiltroTecnica(), "Pergamena").filtroAnno(1999).print(System.out);
2016-12-29 15:56:31 +00:00
}
}