Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int noRecordeComEsDeia(String s){
- int aparicions = 0;
- NodeCnc ant = null;
- NodeCnc aux = prim; // O com hajes nomenat el NodeCnc de la classe Concordanca
- while( aux!=null ){
- if( aux.pal.compareIgnoreCase(s) ) aparicions += aux.numLins.talla();
- ant=aux;
- aux=aux.seguent;
- }
- return aparicions;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement