John has 4 different flags that he wants to hang on the wall. How many different ways can the flags be arranged in a row?

There are 4 flags, so there are 4! (4 factorial) ways to arrange them in a row.

4! = 4 x 3 x 2 x 1 = 24

Therefore, there are 24 different ways the flags can be arranged in a row.