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.
Type: Posts; User: GalBenH
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.
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...
I think I finally got it:
public boolean single(int[] values)
{
if (values.length == 1)
{
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...
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...
Got it, and fixed!
Many thanks Norm!
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...
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...
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...
I was afraid of that and was not aware of the code. will look into it now . thanks
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...
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...