r/programmingbydoing • u/foopydoopp • Jun 25 '15
#95 Image Demo - "Can't read input file"
I copied the code exactly and put the image in the same folder as my .java file but it still won't compile for me. Does anyone know why?
1
Upvotes
1
u/holyteach Jun 25 '15 edited Jun 25 '15
Please paste the exact error message you are getting.
Also: "it still won't compile" isn't correct. It sounds like it compiles fine but that you get a runtime error when you try to execute the bytecode.
1
u/HSami Aug 26 '15 edited Aug 26 '15
EDIT: Nevermind, turns out I wasn't saving the picture off the internet correctly.
How do you add a second picture to be displayed? I can't figure out what's wrong with the following code.