Java reuse java classes in Android
===

I was wondering if it is possible to uje some classes I made with J2ME with android projects?
For example I have class that gets ip as parameter and scans open ports for that ip using java sockets and threads. So can I use it with my android projects without modifying it?