Can you use the Scanner class to read the text file?
What package is the SimpleReader class in? Is that something given you by your teacher?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Has the teacher provided documentation on how to use the class? You will need to read that to see how to use it.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
code above only displays one pixel when i try
Try debugging your code by adding some printlns to show the execution flow and the values of variables as they change.
Where do you change the x,y position of the pixel you are drawing?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Sorry, I know nothing the classes and methods you are using. What does the moveTo method do?
If you always pass it the same args, does it always move to the same location? If so, you need to change the x, y values to go to a new location.
Is there a getXXX method that you can use to get the current position that the plot() method uses so you can print them out for debug?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656