It would really help if we could see your code. There is an option to add a 'Spoiler' to your post so, its not so long on the post itself.
On top of the Post box is a menu. To insert an Spoiler, as I have done here, click on the !. A new box will appear. Paste your worldgen code where it says, "Put your Spoiler here".
My WorldGen.java has only 92 lines of code (including imports).