PROCESSING Create the statement to output the variable strin

PROCESSING

Create the statement to output the variable string, monkey, to the display at the location (x,y) with the size of 15. Make the font color green

Solution

import java.applet.Applet;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;

public class Draw extends Applet {
  
   public void paint(Graphics g) {
       Font currentFont = new Font(\"TimesRoman\", Font.PLAIN, 15);
       g.setColor(Color.GREEN);
       g.setFont(currentFont);
       g.drawString(\"Monkey\", 100, 100);

   }
}

PROCESSING Create the statement to output the variable string, monkey, to the display at the location (x,y) with the size of 15. Make the font color greenSoluti

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site