# Search:

Type: Posts; User: GalBenH

1. ## Thread: Recursion, arrays and greatest common divisor

by GalBenH
Replies
3
Views
1,020

### 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.
2. ## Thread: Recursion, arrays and greatest common divisor

by GalBenH
Replies
3
Views
1,020

### 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. ## Thread: Your input with written code (Sorting and searching within array)

by GalBenH
Replies
9
Views
753

### 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. ## Thread: Your input with written code (Sorting and searching within array)

by GalBenH
Replies
9
Views
753

### 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. ## Thread: Your input with written code (Sorting and searching within array)

by GalBenH
Replies
9
Views
753

### 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. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

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

by GalBenH
Replies
13
Views
607

### [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. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [SOLVED] Re: Need Help ASAP with my code. should be an easy one for you guys!

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. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [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. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [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. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [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.
12. ## Thread: Need Help ASAP with my code. should be an easy one for you guys!

by GalBenH
Replies
13
Views
607

### [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