Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. private static void listErrors(Spelling sp, Scanner in) {
  2. // TODO Auto-generated method stub
  3.  
  4. String textId = in.next();
  5. Text aux = sp.find(textId);
  6. Iterator <String> error;
  7. Iterator<Integer> ite;
  8.  
  9. if (aux != null) {
  10. error = sp.wordError(aux);
  11. if(error.equals(null)){
  12. System.out.println(NOERRORS);}
  13. ite = sp.getLines();
  14. while(error.hasNext())
  15. System.out.println(error.next());
  16. while (ite.hasNext()) {
  17. System.out.println(ite.next());
  18. }
  19. }
  20.  
  21. else
  22. System.out.println(INEXISTENTTEXT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement