Search:

Type: Posts; User: camaleonx13

Search: Search took 0.09 seconds.

  1. Replies
    3
    Views
    1,117

    Re: Linear Search in an array

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

    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...
  3. Replies
    2
    Views
    936

    Searching arrays

    I need to find elements from an array that are unique.
    The program is supposed to identify the duplicate elements as they are being entered and not count them.
    For example: if I enter 10 then 20...
  4. Passing an element from an array to a Method

    Hello;

    My code is supposed to validate each element of the array to ensure they are within the valid range (50-100).
    I can't seem to pass them to the Method.

    import java.util.Scanner;
    ...
Results 1 to 4 of 4