This week's book giveaway is in the Open Source forum.
We're giving away four copies of Programmers Guide to Apache Thrift and have Randy Abernethy on-line!
See this thread for details.
Win a copy of Programmers Guide to Apache Thrift this week in the Open Source forum!

Ana Yo

Ranch Hand
+ Follow
since Dec 14, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
21
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ana Yo

It ouputted 0
4 weeks ago
What would "hello".substring(5) return?
4 weeks ago

Ana Yo wrote:

Dave Tolls wrote:I don't think you got all the way through the loop.

Can you step through it here.
Write each iteration down and show what the value in the array is at the end of each one.




Can you explain what you meant by I didn’t got all the way through the loop because after I went through the loop, I got those new values for the array. I’m confused why the answer is True.

Sorry I meant to say why the array did not change at all.
2 months ago

Dave Tolls wrote:I don't think you got all the way through the loop.

Can you step through it here.
Write each iteration down and show what the value in the array is at the end of each one.




Can you explain what you meant by I didn’t got all the way through the loop because after I went through the loop, I got those new values for the array. I’m confused why the answer is True.
2 months ago
Why is the answer A to this problem? I showed my work and got D as the answer.
2 months ago
Why is it that x never equals 0
2 months ago

Gerard Gauthier wrote:

Ana Yo wrote:Yes, sorry that's what I meant. But why?



For recursion to work it must have an exit strategy because every call to a recursive function will pushes more data onto a limited stack and eventually the program will exit when its exhaust that resource. Note: Some recursive functions in some programming environments can use a small fixed amount of stack space but I'm not sure if the JVM supports tail-call optimization.


Why does it have a stackoverflow error? I thought the method would execute.
2 months ago
The code is just from a homework.
2 months ago
Is it becuase the x will always restart to 3 in the else statement?
2 months ago
Yes, sorry that's what I meant. But why?
2 months ago
Why is the answer infinite? I thought the x would reach 0 and exit the method.
2 months ago

Ana Yo wrote:

Daniel Demesmaecker wrote:By reading your posttitle I thought wow really and this is a beginner course? But what you have to write isn't AI, its just adding a couple of conditions....


Haha


Maybe i’ll learn AI next year.
3 months ago

Daniel Demesmaecker wrote:By reading your posttitle I thought wow really and this is a beginner course? But what you have to write isn't AI, its just adding a couple of conditions....


Haha
3 months ago
Also for some reason I'm getting this error: TicTacToeTester.java:8: error: cannot find symbol
TicTacToe game = new TicTacToe();
^
 symbol:   class TicTacToe
 location: class TicTacToeTester
TicTacToeTester.java:8: error: cannot find symbol
TicTacToe game = new TicTacToe();
                    ^
 symbol:   class TicTacToe
 location: class TicTacToeTester
2 errors
3 months ago