During World War I, Japan officially declared war on Germany.

Source