During the Second World War, Japan occupied Indonesia, which was known until 1942 as the Dutch East Indies.