toString
A method that decides how an object looks when printed or joined to a string. Writing your own replaces Java's unhelpful default such as `Product@2b4a2ec7`.
A method that decides how an object looks when printed or joined to a string. Writing your own replaces Java's unhelpful default such as `Product@2b4a2ec7`.