0

why isnt my code running?

public class Family{ String familyTitle; String Name; int age; String eyeColor; public static void main(String[] args) { Family father = new Family(); father.familyTitle="father"; father.name = "Jeff"; father.age =55; father.eyeColor = "Brown"; Family mother = new Family(); mother.familyTitle = "mother"; mother.name="karen"; mother.age=50; mother.eyeColor ="Hazel"; Family brother = new Family(); brother.familyTitle="brother"; brother.name="kevin"; brother.age="25"; brother.eyeColor ="Green"; Family sister = new Sister(); sister.familyTitle="sister"; sister.name="rose"; sister.age = "23"; sister.eyeColor="Hazel"; System.out.println("what are the names of your family members?" +name); } }

5th Apr 2020, 12:26 PM
Pierre
2 Antworten
+ 1
I have made the corrections in comments. You can change that in your code and can run it to see the output. Edit: I have made the changes as well. https://code.sololearn.com/c8sA8ugn2C4x/?ref=app
5th Apr 2020, 12:39 PM
Avinesh
Avinesh - avatar
0
thank you
5th Apr 2020, 1:13 PM
Pierre