Last active
December 12, 2016 21:39
-
-
Save Joatin/c508170f904090fc38267078394c69c2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
registerDog(){ | |
System.out.printl("hundens namn: "); | |
string name = keyboard.next(); | |
System.out.printl("hundens ras: "); | |
string breed = keyboard.next(); | |
System.out.printl("hundens ålder(år): "); | |
int age = keyboard.nextInt(); | |
System.out.printl("hundens vikt(kg): "); | |
double weight = keyboard.nextDouble(); | |
Dog dog = new Dog(name, breed, age, weight); | |
this.allDogs.add(dog) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment