If I expect to pay tuition in the coming years - should I keep contributing to a 401k or open a 529 account or do nothing?

What's the most logical way to pay for college tuition if you expect to pay it in the coming years? Is it best to withdrawal from 401k account? Or open a 529 account? Or do nothing? Or something else? 

 

Thanks!