Java

Learn Java programming at MYCPLUS with hands-on tutorials, ready-to-use source code, and expert articles. Perfect for beginners and students looking to master OOP, real-world coding, and software development concepts.

Moving ball applet – Java

This is a Java class that uses some trigonometry and vector mathematics in its implementation.  An object of type MovingBall holds data about a “ball” that has a color, radius, position, speed, and direction. The ball is restricted to moving around inside a rectangle in the xy-plane. The ball can draw itself in a graphics context and will move when it is told to move.

Scroll to Top