Examples

This is an extremely dumb question and I apologize in advance…But where can I find examples of games and source code? Back in the day, when I was playing around with Visual Basic and some of the older languages, I could always go on planetsourcecode.com and see examples of how people have done things and I learned pretty quickly…I’ve found a few examples on the wiki but only a few games and nothing that even pertained to what i’m doing.

I’m having trouble figuring out how to organize my classes, what to make each class do, etc. For instance, for my 2d tiled game, I have a Map class which loads and renders the map…Sometimes I look at the code and think it may need to be split up, but am not really sure. Sometimes I have trouble making the classes work together. I hope I explained this correctly as i’m having trouble finding the words to explain what i’m asking lol. I’m new to Java, but I have read through a java book and I feel pretty comfortable with the code itself…It’s just placement and putting it into action.

So basically, is there anything like planetsourcecode for us that I can see projects and see how they did things?