Advertisement
Guest User

Untitled

a guest
Feb 7th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. //DP SECTION
  2. else if(input.toUpperCase().equals("DP")){
  3.  
  4. while(true){
  5. System.out.println("For which port do you wish to retrieve statistics?");
  6. input = i.nextLine();
  7.  
  8. //End sub menu if requested.
  9. if(input.toUpperCase().equals("END"))
  10. {
  11. break;
  12. }
  13.  
  14. result = p.countProbes(Integer.parseInt(input));
  15.  
  16. //If no results found.
  17. if(result == 0){
  18. System.out.println("There were no probes of port " + input);
  19. }
  20. else{
  21. System.out.println("There were " + result + " probes of port " + input);
  22. }
  23. }//End DP while
  24. }//End DP section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement