answersLogoWhite

0


Best Answer

Try this for a very, very simple face....

String hair = " /////// ";

String eyes = " | o o | ";

String noseEars = "(| ^ |)";

String mouth = " | [ ] | ";

String chin = " ------ ";

System.out.println(hair); //prints out the hair

System.out.println(eyes); //prints out the eyes

System.out.println(noseEars); //prints out the nose and ears

System.out.println(mouth); //prints out the mouth

System.out.println(chin); //prints out the chin

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

Java Program To Display A Human

Face - Graphics

/*Program Displaying the human

face suing basic figures, circles, arcs,

lines, etc. Done using Applets.

/* < applet code = "Face" width =

500 height =500>

< /applet> */

import java.awt.*;

import java.applet.*;

public class Face extends Applet

{

public void paint(Graphics g)

{

g.drawString("Hi !!!!!!!!!!!!!!! I Am

Ninad.",20,30);

g.drawArc(30,50,200,200,0,360); //

Main Face

g.drawArc(82,80,30,30,20,160); //Left

Eye Brow

g.fillArc(85,85,25,25,0,360); //Left

Eye

g.drawArc(152,80,30,30,20,160); //

Right Eye Brow

g.fillArc(155,85,25,25,0,360); //Right

Eye

g.drawRect(90,190,80,20); //Mouth

g.drawLine(130,135,115,160); //

Nose Left Line

g.drawLine(130,135,145,160); //

Nose Right Line

g.drawLine(115,160,145,160); //

Nose Base

g.drawString(" ------------- Created By

Lionel.",10,350);

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a java program to create human face?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you write a program specification for a given report?

It is your face


Who wanted to create communism with a human face?

Alexander Dubcek, Czechoslovakia 1968


What program did edward nygma use in batman forever to create his riddler costume?

costume face


Where can you find a website where you can connect a human face to an animal's body?

I don't know if there's a website like that, but it's pretty easy to do in Microsoft Paint or any other program. Just paste a picture of the animal, then the human face and then put them togehter.


When was The Human Face created?

The Human Face was created in 2001.


What is the duration of The Human Face?

The duration of The Human Face is 3000.0 seconds.


What inspired Lauren tarshis to write the you survived?

Lauren Tarshis was inspired to write the &quot;I Survived&quot; series based on her fascination with historical events and disasters. She wanted to create engaging stories for young readers that would transport them to different time periods and bring history to life. The series also allowed her to explore themes of survival, resilience, and human strength in the face of adversity.


How do you write a troll face?

Well, its alot of numbers but here they are and you DO write the "[]" in [[171108522930776]] and it makes a troll face


Why pimples comes on human face?

if we are eat more oil items, pimples come to human face..


What are the ratings and certificates for The Human Face - 2001?

The Human Face - 2001 is rated/received certificates of: Australia:M


What was the name of the soviet space program in 1970?

Soviet Space Program/ your face


What's wrong with your face?

I don't have a face as I am a computer program. How can I assist you today?