Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class ProvaIndiceAnalitico1{
- public static void main (String [] argy){
- Scanner in =new Scanner(System.in);
- String line;
- IndiceAnalitico1 indice=new IndiceAnalitico1();
- int numpagina;
- String parola;
- while (in.hasNextLine()) {
- line=in.nextLine();
- StringTokenizer t= new StringTokenizer(line);
- parola=t.nextToken();
- indice.costruisciparola(parola);
- while (t.hasMoreTokens()){
- numpagina=Integer.parseInt(t.nextToken());
- indice.costruiscipagina(numpagina);
- }
- }
- //stampa dell'indice
- if(!indice.isEmpty())
- indice.stampaIndice();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement