so with android studio does this make eclipse obselete?

Can you develop Java in Android Studio? or can you only use it for making android apps?