In programming, an idiom is a commonly used piece of code in a language. People who frequently program in some language (like Java) use certain kinds of code for certain situations. They are so commonly used that you ought to learn and use them as well. It makes it easier to read other people's code and makes it easier for others to read your code.