This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.capability3; | |
import java.util.*; | |
public class binarysearch | |
{ | |
public static boolean search(int []arr,int n,int key) | |
{ | |
// Insert sort | |
int temp; | |
for(int i=0;i<n;i++) | |
{ |