import javax.swing.JFrame; 
import java.awt.Container; 

public class Tuesday {
  public static void main (String[] args) {
    JFrame a = new JFrame(); 
    a.setVisible(true); 
    a.setSize(400, 400); 
    Container b = a.getContentPane();
    b.add(new Scherm()); 
  }
}

import javax.swing.JComponent;
import java.awt.Graphics;

public class Scherm extends JComponent {
  public void paintComponent(Graphics g) {
    g.drawOval(30, 40, 100, 200);     
  }
}

Compile and run the class with main. 

Develop, debug and we end up with this. 

import java.awt.Graphics; 
import java.awt.Color; 

public class Circle {
  int radius;
  int x, y; 
  Color color; 
  public Circle(int x, int y, int radius, Color c) {
    this.x = x;
    this.y = y; 
    this.radius = radius; 
    this.color = c;
  }
  public void draw(Graphics g) {
    g.setColor( this.color ); 
    g.fillOval( this.x - this.radius, 
                this.y - this.radius, 
                2 * this.radius, 
                2 * this.radius ); 
    g.setColor( Color.BLACK ); 
    g.drawOval( this.x - this.radius, 
                this.y - this.radius, 
                2 * this.radius, 
                2 * this.radius ); 
  }
  public String toString() { 
    return "Circle(" + this.x + ", " + this.y + ")"; 
  }
}

import javax.swing.JComponent;
import java.awt.Graphics;
import java.util.ArrayList; 
import java.awt.Color; 

public class Scherm extends JComponent {
  ArrayList<Circle> circles = new ArrayList<Circle>(); 
  public Scherm(int number) {
    for (int i = 0; i < number; i++) {
      this.circles.add( new Circle( (int) (Math.random() * 400), 
                                    (int) (Math.random() * 400), 
                                    (int) (Math.random() * 40 + 20), 
                                    // Color.YELLOW )
                                    new Color ((float) (Math.random() * 0.5 + 0.5), 
                                               (float) (Math.random() * 0.5 + 0.5),
                                               (float) (Math.random() * 0.5 + 0.5)) )
  // https://docs.oracle.com/javase/7/docs/api/java/awt/Color.html#Color(float,%20float,%20float)
                                  
                      );  
    }
  }
  // Circle c = new Circle(50, 50, 20, Color.YELLOW); 
  public void paintComponent(Graphics g) {
    // g.drawOval(30, 40, 100, 200);     
    // c.draw(g); 
    // System.out.println( c ); 
    for (Circle c : this.circles)
      c.draw(g); 
  }
}

import javax.swing.JFrame; 
import java.awt.Container; 
import java.awt.Color; 

public class Tuesday {
  public static void main (String[] args) {
    // Circle a = new Circle(30, 40, 50, Color.YELLOW);
    // System.out.println( a ); 
    JFrame a = new JFrame(); 
    a.setVisible(true); 
    a.setSize(400, 400); 
    Container b = a.getContentPane();
    b.add(new Scherm(18)); 
  }
}

--

Misato Katherine Jillian Patrick Yibo Santiago Kefei Garrett Iris Rafael 
Tao John Daniel C Noah Keiland Khalea Ryan Elise Stuart Bihan Jiang dgerman