Most games do not publish their code - Candy Crush is an example: they make money from advertising and giving away their source code is not going to maximize their revenue stream.
If you ask Google:
github java games[
^] you will find some games source, but...it probably won't help you become a better games programmer! Learn Java / Android and get experience writing code will do that a lot, lot better.