Here is the for loop,, I hope this is not considering attaching a solution to the question? Thank You!
Human h1 = new Human("GrandFather1",true,23 );
Human h2 = new Human("GrandMother1",false,20);
Human h3 = new Human("GrandFather2",false,12);
Human h4 = new Human("GrandMother2",true, 42);
Human h5 = new Human("Father", true , 12, h1,h2);
Human h6 = new Human("Mother", false , 12, h3, h4);
Human h7 = new Human("children1", false , 12, h5,h6);
Human h8 = new Human("children2", true , 12, h5, h6);
Human h9 = new Human("children3", false , 12,h5,h6);
for (int i = 1;i<10;i++){
System.out.println("h" + i);
}
This is funny,, I passed the requirements with the below for loop,,, that does not work,, any thoughts??
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
hidden #10515202
24 December 2019, 20:12
Mine was working perfectly fine but did not pass one of the requirements. I tried yours it didn't make any sense but it passed all the requirements... wowwww hahaha.
0
Joseph
26 July 2019, 06:33
You passed with it? Ha nice. I don't see why though. If I hadn't already passed this task I would have tried with the for loop just to see. I ran the code afterwards and it just displays the literal "h" + i integer.
0