Quote:
I tried googling it but i didn't find a solution
Actually
Google returns about
3,000,000
results for the
"usb barcode java" query.
You should read your barcode scanner documentation, in order to understand how to access it. Probably a library is provided.