On non-UNIX machine:
javac org/sofe3650u/tut3/Main.java
java org.sofe3650u.tut3.Main
On a UNIX machine:
./run.sh
Make sure to be in the root directory when running these commands (aka same level as data.txt
)
jeremytubongbanua@Jeremys-MacBook-Air sofe3650u-tut3 % ./run
.sh
Please enter a product ID (e.g. "0"):
1
Product found with id 1:
ProductID: 1 ProductName: apple
jeremytubongbanua@Jeremys-MacBook-Air sofe3650u-tut3 % ./run
.sh
Please enter a product ID (e.g. "0"):
2
Product found with id 2:
ProductID: 2 ProductName: banana