In this post I am going to explain how to add customer address programmatically in magento 2.

1. Using Dependency Injection

Add below code snippet in Block class.

 

2. Using Object Manager

 

 

Thats it. Enjoy Magento 2!!