Is There No Solution to Violence and Mass Shootings?

Within the last few days, terrible mass shootings have occurred in the USA, and we also hear about more and more insane violent attacks throughout the world. Why is this happening, and has the Bible forewarned that those atrocities will take place in the last days?  Is there no hope and no solution? But if there is, what is it?