Code:
// "touch up" the mouth into a smile g.setColor( Color.YELLOW ); g.fillRect( 50, 110, 120, 30 );// touch up here g.fillOval( 50, 120, 120, 40 ); // touch up here
// "touch up" the mouth into a smile g.setColor( Color.YELLOW ); g.fillRect( 50, 110, 120, 30 );// touch up here g.fillOval( 50, 120, 120, 40 ); // touch up here
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class Smiley extends Applet implements ActionListener
{
/**
*
*/
private static final long serialVersionUID = 1L;
private boolean SMILE = true;
private final Font f = new Font("Helvetica", Font.PLAIN, 9);
public void init() { // Define the GUI
// The applet has a "Smile"
import java.util.*;
public class zodiac2 {
public static void main(String[] args) {
String sign="";
int month, day,year;
Scanner c = new Scanner (System.in);
System.out.println("Enter day(1-31): ");
day = c.nextInt();
System.out.println("Enter month(1-12): ");
month = c.nextInt();
System.out.println("Enter year: ");
import java.util.Scanner; // program uses class Scanner
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
public class person {
private String firstName;
private String lastName;
private String middleInitial;
private String idNumber;
public void personAttributes( String first, String last,String middle, String id )
{
Leave a comment: