Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void listErrors(Spelling sp, Scanner in) {
- // TODO Auto-generated method stub
- String textId = in.next();
- Text aux = sp.find(textId);
- Iterator <String> error;
- Iterator<Integer> ite;
- if (aux != null) {
- error = sp.wordError(aux);
- if(error.equals(null)){
- System.out.println(NOERRORS);}
- ite = sp.getLines();
- while(error.hasNext())
- System.out.println(error.next());
- while (ite.hasNext()) {
- System.out.println(ite.next());
- }
- }
- else
- System.out.println(INEXISTENTTEXT);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement