Search:

Type: Posts; User: GalBenH

Search: Search took 0.08 seconds.

  1. Re: Your input with written code (Sorting and searching within array)

    I think I finally got it:




    public boolean single(int[] values)
    {

    if (values.length == 1)
    {
  2. Re: Your input with written code (Sorting and searching within array)

    Thanks all for your prompt help!
    Kevin,
    Regarding the existsOnce=true
    Before getting into any loop I wanted to eliminate the scenario of having an Array of only 1 int, which by deafult need this...
  3. Your input with written code (Sorting and searching within array)

    So here's the assignment I was given:
    Writing a method that receives an int array titled values.
    the method has to return True, if throughout the array, there's an int that exists only once, or...
Results 1 to 3 of 3