how could i connect the flashdrive to my java program, so that i could use it as an atm card? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how could i connect the flashdrive to my java program, so that i could use it as an atm card?

I will create an atm simulation program and when i insert a flashdrive my program can read the flashdrive.

19th Feb 2018, 3:36 PM
gene garcia
gene garcia - avatar
1 Answer
+ 1
You may save a file in the flash drive that may contain a special number, like a 16 digit card number. This number can be read by the program and if you have a match, you may print that the card has been read, and the user may remove it to continue in the transaction.
19th Feb 2018, 3:39 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar