Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * random access binary file recursive binary search
- * This program demonstrates the recursiv
- * binary search method applied to random access binary file.
- *
- * Project 2 cs111
- */
- // imports
- /**
- *
- * author
- * date
- *
- */
- public class RandomAccessBinaryFileRecursiveBinarySearch {
- public static void main(String[] args)
- throws FileNotFoundException, IOException {
- // The value to search for
- // Create a Scanner object for keyboard input.
- // file BinFileShort
- // open for reading RandomAccessFile file
- // create file object fileArray
- // loop over multiple reads until sentinal value is read
- // Get a value to search for.
- // Search for the value
- // Display the results.
- // searchValue + " was not found
- // searchValue was found at element: result
- // search until sentinal value is read
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement