I wrote:The code you wrote will never stop looping because you used an assignment (=) instead of a comparison (==)
Tim Holloway wrote:So don't avoid recursion just to be "efficient". Only be efficient when you detect that you're being inefficient. The recursive solution is often easier to read and understand, and these days, it's the humans that are the expensive part of the system.
Daniel Andersson wrote:My thinking is that line 2 and line 4 for the question asked is just there to confuse you or make you think.
Daniel Andersson wrote:If we assume that FastFood is a superclass of Hamburger. What would be the difference between using the object food2 and the object h?
And about 3 pounds of gray matter.
Stephan van Hulst wrote:The only tools you need are a pencil, paper and an eraser.
When you have a description of the problem domain, you can start by writing down the nouns of the description, and how they interact with each other through verbs. You can then eliminate terms that are not related to the problem, or are too simple to be represented by a class.
Joe Farmer wrote:How do i create an object model an establish a small set of test data? and establish a set of test cases ?
can someone help me with this?
Shubham Rai wrote:Is there any way to find present capacity of ArrayList?