The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Delete
By Guest on 21st August 2019 01:24:40 PM | Syntax: TEXT | Views: 14



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1.     private void deleteStudentDetails(Studentdetails studentdetails) {
  2.           if (studentList != null ) {
  3.               for (int i = 0; i < studentList.size(); i++) {
  4.  
  5.                       if (studentList.get(i).getName().equalsIgnoreCase(studentdetails.getName())) {
  6.                               studentList.remove(i);
  7.                               System.out.println("deleted");
  8.                               redirectToListScreen(studentList);
  9.                              
  10.                       }
  11.  
  12.               }
  13.  
  14.       }
  15.                        
  16.                 }



  • Recent Pastes