Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2 Make sure you can locate your file
- Edit the setup/draw tab for this section.
- 1. Add an import statement at the top of the tab. You will be importing
- java.util.Scanner
- 2. Declare a variable called in of type Scanner
- 1
- Java Programming Foundations, Lab 6
- 3. Write a setup function and in it add this line of code:
- 1 in = InputReader . getScanner ("h :\\ path \\ to \\ DailyMix . csv ");
- ensuring that you change the path to locate your copy of the file.
- 4. Run the program and check that you got the path right. If you see an error in the
- console panel when you run the program, you got something wrong. Retrace your
- steps to ensure everything is correct. When there is no message in your console
- when running the program, everything is working.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement