Posted by : Unknown Thursday, 2 July 2015

import java.applet.Applet;
import java.awt.Graphics;
public class applet extends Applet
{
    public void paint(Graphics g) 
    {
        g.drawLine(10,10,160,160);
    }
}

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

- Copyright © Learning Java Program - Powered by Blogger -