I'll write it, but if there's a ready, tested code snippet that does this I'll be happy to steal it.
COUNT(*) SUM(cnt)
0 1
Edit - Thanks for the votes to close, I can always count on the good souls in Stack Overflow to be quick with the close votes. I'll add some details to the question.
I am looking for a java code snippet that can parse the output of running "mysql" executable. The snippet above is an example of such an output that I would like to parse.