Write a Java program that will incorporate either a sequential search method or a sort method
Solution
class Search
{
public static void main(String args[])
{ int array[],n;
System.out.println("Please enter the sixe of array");
Scanner s = new Scanner(System.in);
int n = s.nextInt();
System.out.println("Please enter"+ n +"elements of array");
for(int i= 0;i

Write a Java program that will incorporate either a sequential searc.pdf

  • 1.
    Write a Javaprogram that will incorporate either a sequential search method or a sort method Solution class Search { public static void main(String args[]) { int array[],n; System.out.println("Please enter the sixe of array"); Scanner s = new Scanner(System.in); int n = s.nextInt(); System.out.println("Please enter"+ n +"elements of array"); for(int i= 0;i