Avoid nested loops where possible (e.g. for loop within another for loop etc) and instead make use of an appropriate java collection.
How can you code better without nested loops?
Tagged Interview Questions and Answers. Bookmark the permalink.