Search:

Type: Posts; User: camaleonx13

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,115

    Re: Linear Search in an array

    How do I return the - 1 to show in the main?
  2. Replies
    3
    Views
    1,115

    Linear Search in an array

    I'm trying to run this code to find the key in the array
    If the element is not 5 it is supposed to return a -1
    The code runs but doesn't return anything. What am I doing wrong?

    public class...
Results 1 to 2 of 2