Check Index


SUBMITTED BY: Guest

DATE: Oct. 25, 2013, 9:49 a.m.

FORMAT: Java

SIZE: 888 Bytes

HITS: 986

  1. private boolean checkIndexNumber(int index) {
  2. for(int i=0;i<currentSize;i++)
  3. {
  4. if (index == musicList[i].getTrackID())
  5. return true;
  6. }
  7. {
  8. return false;
  9. }
  10. }
  11. public void checkDelete(boolean checkDelete)
  12. {
  13. if(checkDelete=false)
  14. {
  15. JOptionPane.showMessageDialog(null,"The Record was not found, or could not be deleted.\nPlease try again.");
  16. menu();
  17. }
  18. if(checkDelete=true)
  19. {
  20. JOptionPane.showMessageDialog(null,"The record was deleted.");
  21. menu();
  22. }
  23. }

comments powered by Disqus