High I'm having issues with the "test code" part of lesson 23 Temperatures. The error messages report that the program is adding numbers to the graph that should be excluded. But, when I run the program, I can't duplicate those errors. For example, the number 1000 does not graph when I run it. But I receive an error stating that, "The number 1000 should not be added to the graph." when I submit for testing. Any suggestions would be greatly appreciated. Thank you.
Sincerely,
Joshua Sitton
rmhtxjas@msn.com
Here is the code by the way:
import java.util.Scanner;
public class Temperatures {
}
Hi,
You should only create one scanner, so remove Scanner declaration from the loop.
BR
Joni
Thank you! That was exactly it. I knew it was something very basic like that. I was hesitant to ask for help, but I'm glad I did. It could have taken me forever to figure that out on my own. So, once again thanks.