Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAndras Andras
8,230 PointsFrog property
Hello there,
I need some help for the "(Frog[] frogs)" property. I have seen also in the video but still does not make sense. In the Frog challenge, does it refers to an array in Frog.cs called "frog" ? But this array actually does not exist in Frog.cs. Why do we need this property?
namespace Treehouse.CodeChallenges
{
class FrogStats
{
public static double GetAverageTongueLength(Frog[] frogs)
{
}
}
}
namespace Treehouse.CodeChallenges
{
public class Frog
{
public int TongueLength { get; }
public Frog(int tongueLength)
{
TongueLength = tongueLength;
}
}
}
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! A while back I posted a fairly detailed solution coupled with an explanation which you can find here. I hope this helps make things clearer, but if you still need assistance, please let me know!
Andras Andras
8,230 PointsAndras Andras
8,230 PointsHi Jennifer,
Thanks for the help. Now it is better, however how can I get the community forum organized. When I click on your link I can see Title and Subtitle organized on the top part of the forum panel but when I click on the community button I can just filter by programming language but no subtopics?
Jennifer Nordell
Treehouse TeacherJennifer Nordell
Treehouse TeacherHi there! No they aren't really organized in subtopics under that menu. However, you have a couple of options here. Either you can use the search function which is quite nice. Many times you can enter the name of the challenge and see some interesting threads immediately. But in this instance, the easiest thing would be to look at the top of the page where you asked the question and click on "For Loops". This will lead you to a list of pages with questions regarding this specific challenge. Hope this helps!