In my android studio project want to use existing java project code
I tried this way:
Click File > New Module. Select Java Library and click Next.
Select Import Project Instead Module
For demo you may visit Getting Started with Android Studio for step by step approach .
Details
https://developer.android.com/sdk/installing/migrate.html