请教啊~~~~~~大侠们支个着吧~~~~~~
我刚开始学java,看了前面一点以后想编个小控件,是想输出个菱形,可是确实现不了~~~~大侠们能支个着吗?帮忙看下这样写什么错了?import java.applet.Applet;
import java.awt.Graphics;
public class LovingHeart extends Applet
{
public void paint(Graphics g)
{
g.drawString("\" . \"\n ... \n ..... \n ....... \n ......... \n ........... \n ............. \n ............... \n ................. \n ................... \n.....................\n ................... \n ................. \n ............... \n ............. \n ........... \n ......... \n ....... \n ..... \n ... \n . \n",50,50);
}
}