This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
NewInterface.java:16: modifier private not allowed here
One advice please try to run these code yourself first and see compilation errors yourself it is of no use if someone tells you directly. It can be fun to see compiler errors yourself at times.
Your subject line asks if you can have private methods in an abstract class -- the answer to that is "yes". As other folks have noted, you can't in an interface.
What would you do with a private method in an interface?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus