Jump to content

Hey, Guys, I need help fixing the print of the list. I don't know why Java is printing it that way and I would love some feedback on this situation.

The code is supposed to find the sum of each row in a Grid List and make a list of the summed up rows into one list. 

Thanks for the feedback! :) 

programshit.PNG

Link to comment
https://linustechtips.com/topic/773020-java-print-error/
Share on other sites

Link to post
Share on other sites

Basically what this guy^ said. You need to iterate through the array you wish to print and print them out individually. Currently you are printing the toString method of every java object https://docs.oracle.com/javase/7/docs/api/java/lang/Object.html#toString() which is the name and hashcode in memory.

Link to comment
https://linustechtips.com/topic/773020-java-print-error/#findComment-9762119
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×