自己用java制作贪吃蛇小游戏
importjava.awt.*;importjavax.swing.*;importjava.awt.event.*;importjava.util.*;publicclasssnateextendsJFrameimplementsKeyListener,Runnable{JLabelj;Canvasj1;publicstaticfinalintcanvasWidth=200;publicstaticfinalintcanvasHeight=300;publicstaticfinalintnodeWidth=10;publicstatic