In that situation don't most authors use some pseudocode anyway(?) since the point isn't to be syntactically correct but to express the concept in a way that can be understood by as many people as possible.
I don't know why anyone would want to write java to express programming concepts, better left to python or ruby where real code basically looks like pseudocode.