I am writing a paper and would like to include some of my "real-world" Java code. What is the best way to accomplish this? I would like to see two templates:
- My explanation to the right of my Java Code in a column fashion
- All of my Java code pasted in one block and then a description afterwards
I think 2 is probably the best way to go for simplicity.

listingspackage. Also useful to search here for [listings] (could possibly include the word java in your query, but answers for other languages will probably also be useful). – Vivi Dec 14 '12 at 05:26listingsandmintedto narrow down search results – texenthusiast Dec 14 '12 at 05:51