Android is an operating system; are you asking how to send notifications to particular devices that run Android? If so, what distinguishes those devices, or in other words, how do you decide which devices to send the notification to?
Also, what do you mean by "using Java"? Would this be a server app or desktop app written in Java?
TellTheDetails. Also see
http://android-developers.blogspot.com/2010/05/android-cloud-to-device-messaging.html