Search:

Type: Posts; User: GalBenH

Search: Search took 0.08 seconds.

  1. Re: Recursion, arrays and greatest common divisor

    Sorry. I thought I had mentioned it in the main post.
    Loops are out of the question, recursion only here.
    thanks for your input though.
  2. Recursion, arrays and greatest common divisor

    I'm trying to write a method that receives an int array and returns true if all of the array's integers are "non-relative"( not sure if that's how you say it), by non relative I mean that their...
  3. 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)
    {
  4. 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...
  5. 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...
  6. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    Got it, and fixed!
    Many thanks Norm!
  7. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    You're going to have to forgive my ignorance because I'm not sure what you mean by see what the code is doing. examining the code on paper seems right to me.
    Is there a way to translate it into what...
  8. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    Thanks for your reply.
    I tried doing so but I still can't figure it out.
    my logic says that the seconds should be

    seconds = total number of seconds - (hour represented by seconds + minutes...
  9. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    I meant faster responses than others who posted before me and have yet gotten their answers.
    I just know that some people tend to look at threads and while they may have the answer to them. they...
  10. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    I was afraid of that and was not aware of the code. will look into it now . thanks
  11. [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

    I'm not asking to get faster responses than people who have asked questions before me and have yet gotten their answers.
    But I'm asking that if from reading this post,someone holds the answer for me...
  12. [SOLVED] Need Help with my code. should be an easy one for you guys!

    Hello all.
    I have an assignment due soon and I'm struggling with this code.
    a little background of what I needed to do:
    create a class that will receive input from user representing time (H for...
Results 1 to 12 of 12