Java: Sahami's Bouncing Ball | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Java: Sahami's Bouncing Ball

Just getting started here. I've had programming classes before, but am new to Java and have no substantial experience. This program is from Mehran Sahami's Stanford lecture posted to Youtube. https://www.youtube.com/watch?v=YpZCKVG4s5k&t=1996s The code is visible starting around 32 minutes. It is a simple graphics program that shows a bouncing ball. A good place for me to start experimenting with settings, replacing one object with another and generally getting used to how the syntax relates to what appears on the screen. But, I can't even get to the metaphorical starting gate! I tried cutting and pasting into the Sololearn emulator but get the same errors. I think it has to be something with the acm libraries, but . . . what? Code is in the playground. Thanks in advance!

3rd Aug 2017, 5:14 PM
Jason LeBrun
Jason LeBrun - avatar
1 Answer
+ 6
Yes, you can't import libraries in the code playground
3rd Aug 2017, 5:26 PM
The Coding Sloth
The Coding Sloth - avatar