https://github.com/jeremytubongbanua/sofe3650u-tut3
https://github.com/jeremytubongbanua/sofe3650u-tut3
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jeremytubongbanua/sofe3650u-tut3
- Owner: JeremyTubongbanua
- Created: 2023-09-29T21:51:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-29T23:00:06.000Z (over 1 year ago)
- Last Synced: 2025-01-19T02:47:35.121Z (5 months ago)
- Language: Java
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to Run
On non-UNIX machine:
```sh
javac org/sofe3650u/tut3/Main.java
java org.sofe3650u.tut3.Main
```On a UNIX machine:
```sh
./run.sh
```Make sure to be in the root directory when running these commands (aka same level as `data.txt`)
## Example Output
```sh
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
```