"why have the Arabs been at war with Israel from 1940s through the 1970s and several times after that ?"

Perhaps they were upset because their land and resources were stolen. Or maybe they were not happy to have their homes demolished and olive orchards bulldozed. Or , let's see, ..... it could be because the IDF shot and killed their children when they resisted the abuse.