I get that everybody has their own coding style, or that people follow different coding conventions, but I find the examples in my Data Structures book to be some of the most hideous Java I have ever seen.

awful java code style




























For the sake of comparison, here’s the converted code to what I believe to be textbook Oracle coding convention (the convention I have always followed).  The only exception is that I typically prefer to use 4 spaces instead of 8, but I’ve used both in the past.

java oracle coding convention style