柳诗然所学的专业是软件工程,2007年4月,她用JAVA将江枫为她写的诗编成程序,显示在网页上。代码如下:
import java.applet.*;
import java.awt.*;
public class jiangfeends Applet
{public void paint(Graphics g)
{g.setColor(Color.yellow);
g.drawString(“然儿如水“,450,50);
g.setColor(Color.pink);
g.drawString(“枫儿似火“,450,70);
g.setColor(Cole);
g.drawString(“心雨空山“,450,90);
g.setColor(Creen);
g.drawString(“古都旧情“,450,110);
g.setColor(Color.blue);
g.drawString(“天各一方“,450,130);
g.setColor(Color.red);
g.drawString(“身虽两地“,450,150);
g.setColor(Color.black);
g.drawString(“心随影动“,450,170);
g.setColor(Color.yellow);
g.drawString(“不敢忘怀“,450,190);
g.setColor(Color.pink);
g.drawString(“空首伊人“,450,210);
g.setColor(Cole);
g.drawString(“未能照料“,450,230);
g.setColor(Creen);
g.drawString(“心中愧当“,450,250);
g.setColor(Color.blue);
g.drawString(“遥望京师“,450,270);
g.setColor(Color.red);