Thoughts, ramblings, and musings from a Java developer. Like all the cool kids, I update this embarrassingly rarely. My postings here reflect my personal views and do not necessarily represent those of my employer IBM.

Thursday, 27 September 2012

Java basics: converting a collection to a string

If you look up how to write a map or a list out as a string, you can find lots of complicated answers involving loops and even XMLEncoders. It doesn't have to be that hard. The easiest way to convert a Map into a nice string?

1 comment:

Hi, Heum, kind of a special Happy new year, but, Mrs, C., you just hacked me with your "Java Performance - Myths, Mysteries, and Paradoxes".

Okay, now I'm literally dying to have the exact spelling of one term:

"special equality" : I'm almost sure it's not the right spelling, cause I've been googling that . It's this notion you speak about: the notion of two objects being referenced on two "close to each other" physical memory location (physical addresses).