This preview shows page 1. Sign up to view the full content.
Unformatted text preview: int index = BinarySearch.binarySearch(id, Integer.parseInt(numString)) String output if (index >= 0) output = "The student's name is " + name[index] + "." else output = "ERROR: ID number not found." JOptionPane.showMessageDialog(null, output) } }...
View Full Document
This note was uploaded on 04/10/2008 for the course ENGR 131 taught by Professor Xiaowei during the Spring '07 term at Case Western.
- Spring '07