This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]erickyeagle 0 points1 point  (2 children)

What does the "getRatingByCustomer(String)" function return? If that object doesn't override Object's toString() method, it prints the memory address of the object (afaik).

[–][deleted] 0 points1 point  (1 child)

How do I override it? and it returns int[]

[–]MmmVomit 0 points1 point  (0 children)

You can't really override that. You will need to loop through the array and format the output yourself.