title: Detect a USB device plug in and out (kind of Listening) with Java? Not just pendrives
body: <p>How can I detect a USB device plug in and out (kind of listening) with Java?<br>
  Not just a pendrive, it could be a scanner or printer too.</p>
  
  <p>I tried jUSB, but it's of no use.<br>
  USB Java library would be more since I've got to use just a bit of it.  </p>
  
  <p>I need to include the lines in my code so that the device being plugged in and plugged out can be notified.</p>