Sequential Search Program

  • Sequential search is also called as Linear search.

  • It checks every one of its elements one by one in sequence, until desired element is not found.


  • Create new java project using eclipse as follows:

  • Create a New Java Project in Eclipse

  • Write the code for sequential search as follows in the class:

  • Now run your program as Java Application

  • Enter the total number of elements on console

  • Enter the integer numbers

  • Enter the elements you want to search and you should get output as follows:

Output of Sequential Search Program


Ready for structured training?

Learn Java Full Stack with real projects

Live classes, practical projects, interview preparation and placement support in one guided programme.

View Java Full Stack Course Book Free Demo