Okay, I wonder now how I can say that I have dog with age 5 in list. This one says sentence so many as I have that item in list. How can I look through list without using for loop than?
public...
Type: Posts; User: sabbath
Okay, I wonder now how I can say that I have dog with age 5 in list. This one says sentence so many as I have that item in list. How can I look through list without using for loop than?
public...
I know that I could use Dogs.get(); to print out certain object from list but I want to print out everything if that if statement is filled. :D
EDIT: It works now with that code. Anyway is there...
I have a dog class type list which contains many objects of that class(many dogs each new object) with constructor input. For example list Dogs with type dog contains dog with weight, age, length:...