Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //DP SECTION
- else if(input.toUpperCase().equals("DP")){
- while(true){
- System.out.println("For which port do you wish to retrieve statistics?");
- input = i.nextLine();
- //End sub menu if requested.
- if(input.toUpperCase().equals("END"))
- {
- break;
- }
- result = p.countProbes(Integer.parseInt(input));
- //If no results found.
- if(result == 0){
- System.out.println("There were no probes of port " + input);
- }
- else{
- System.out.println("There were " + result + " probes of port " + input);
- }
- }//End DP while
- }//End DP section
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement