仓酷云
标题:
JAVA编程:java小游戏-贪吃蛇
[打印本页]
作者:
乐观
时间:
2015-1-18 11:46
标题:
JAVA编程:java小游戏-贪吃蛇
java比较简单,没有C++的烦琐,但学习时最好有C++为基础.与JSP和SQL起应用,功能强大.SnakeGame.java
packageSnakeGame;
importjavax.swing.*;
publicclassSnakeGame
{
publicstaticvoidmain(String[]args)
{
JDialog.setDefaultLookAndFeelDecorated(true);
GameFrametemp=newGameFrame();
}
}
Snake.java
packageSnakeGame;
importjava.awt.*;
importjava.util.*;
classSnakeextendsLinkedList
{
publicintsnakeDirection=2;
publicintsnakeReDirection=4;
publicSnake()
{
this.add(newPoint(3,3));
this.add(newPoint(4,3));
this.add(newPoint(5,3));
this.add(newPoint(6,3));
this.add(newPoint(7,3));
this.add(newPoint(8,3));
this.add(newPoint(9,3));
this.add(newPoint(10,3));
}
publicvoidchangeDirection(Pointtemp,intdirection)
{
this.snakeDirection=direction;
switch(direction)
{
case1://up
this.snakeReDirection=3;
this.add(newPoint(temp.x,temp.y-1));
break;
case2://right
this.snakeReDirection=4;
this.add(newPoint(temp.x+1,temp.y));
break;
case3://down
this.snakeReDirection=1;
this.add(newPoint(temp.x,temp.y+1));
break;
case4://left
this.snakeReDirection=2;
this.add(newPoint(temp.x-1,temp.y));
break;
}
}
publicbooleancheckBeanIn(Pointbean)
{
Pointtemp=(Point)this.getLast();
if(temp.equals(bean))
{
returntrue;
}
returnfalse;
}
publicvoidremoveTail()
{
this.remove(0);
}
publicvoiddrawSnake(Graphicsg,intsingleWidthX,intsingleHeightY,intcooPos)
{
g.setColor(ColorGroup.COLOR_SNAKE);
IteratorsnakeSq=this.iterator();
while(snakeSq.hasNext())
{
PointtempPoint=(Point)snakeSq.next();
this.drawSnakePiece(g,tempPoint.x,tempPoint.y,
singleWidthX,singleHeightY,cooPos);
}
}
publicvoiddrawSnakePiece(Graphicsg,inttemp1,inttemp2,
intsingleWidthX,intsingleHeightY,intcooPos)
{
g.fillRoundRect(singleWidthX*temp1+1,
singleHeightY*temp2+1,
singleWidthX-2,
singleHeightY-2,
cooPos,
cooPos);
}
publicvoidclearEndSnakePiece(Graphicsg,inttemp1,inttemp2,
intsingleWidthX,intsingleHeightY,intcooPos)
{
g.setColor(ColorGroup.COLOR_BACK);
g.fillRoundRect(singleWidthX*temp1+1,
singleHeightY*temp2+1,
singleWidthX-2,
singleHeightY-2,
cooPos,
cooPos);
}
}
GameFrame.java
packageSnakeGame;
importjava.awt.*;
importjava.awt.event.*;
importjavax.swing.*;
importjava.util.*;
importjava.awt.geom.*;
classGameFrameextendsJFrame
{
privateToolkittempKit;
privateinthorizontalGrid,verticalGrid;
privateintsingleWidthX,singleHeightY;
privateintcooPos;
privateSnakemainSnake;
privateLinkedListeatedBean;
{
eatedBean=newLinkedList();
}
privateIteratorsnakeSq;
publicjavax.swing.TimersnakeTimer;
privateintdirection=2;
privateintscore;
privateStringinfo;
privatePointbean,eatBean;
{
bean=newPoint();
}
privatebooleanflag;
privateJMenuBarinfoMenu;
privateJMenu[]tempMenu;
privateJMenuItem[]tempMenuItem;
privateJRadioButtonMenuItem[]levelMenuItem,versionMenuItem;
privateJLabelscoreLabel;
{
scoreLabel=newJLabel();
}
privateGraphics2Dg;
privateImageIconsnakeHead;
{
snakeHead=newImageIcon("LOGO.gif");
}
privateConfigMenuconfigMenu;
privatebooleanhasStoped=true;
publicGameFrame()
{
this.tempKit=this.getToolkit();
this.setSize(tempKit.getScreenSize());
this.setGrid(60,40,5);
this.getContentPane().setBackground(ColorGroup.COLOR_BACK);
this.setUndecorated(true);
this.setResizable(false);
this.addKeyListener(newKeyHandler());
GameFrame.this.snakeTimer=newjavax.swing.Timer(80,newTimerHandler());
this.getContentPane().add(scoreLabel,BorderLayout.SOUTH);
this.scoreLabel.setFont(newFont("Fixedsys",Font.BOLD,15));
this.scoreLabel.setText("Pause[SPACE]-Exit[ESC]");
this.configMenu=newConfigMenu(this);
this.setVisible(true);
}
publicvoidsetGrid(inttemp1,inttemp2,inttemp3)
{
this.horizontalGrid=temp1;
this.verticalGrid=temp2;
this.singleWidthX=this.getWidth()/temp1;
this.singleHeightY=this.getHeight()/temp2;
this.cooPos=temp3;
}
privateclassKeyHandlerextendsKeyAdapter
{
publicvoidkeyPressed(KeyEvente)
{
if(e.getKeyCode()==27)
{
snakeTimer.stop();
if(JOptionPane.showConfirmDialog(null,"Areyousuretoexit?")==0)
{
System.exit(0);
}
snakeTimer.start();
}
elseif(e.getKeyCode()==37&&mainSnake.snakeDirection!=2)//left
{
direction=4;
}
elseif(e.getKeyCode()==39&&mainSnake.snakeDirection!=4)//right
{
direction=2;
}
elseif(e.getKeyCode()==38&&mainSnake.snakeDirection!=3)//up
{
direction=1;
}
elseif(e.getKeyCode()==40&&mainSnake.snakeDirection!=1)//down
{
direction=3;
}
elseif(e.getKeyCode()==32)
{
if(!hasStoped)
{
if(!flag)
{
snakeTimer.stop();
configMenu.setVisible(true);
configMenu.setMenuEnable(false);
flag=true;
}
else
{
snakeTimer.start();
configMenu.setVisible(false);
configMenu.setMenuEnable(true);
flag=false;
}
}
}
}
}
privateclassTimerHandlerimplementsActionListener
{
publicsynchronizedvoidactionPerformed(ActionEvente)
{
Pointtemp=(Point)mainSnake.getLast();
snakeSq=mainSnake.iterator();
while(snakeSq.hasNext())
{
PointtempPoint=(Point)snakeSq.next();
if(temp.equals(tempPoint)&&snakeSq.hasNext()!=false)
{
snakeTimer.stop();
stopGame();
JOptionPane.showMessageDialog(null,
"YourScoreis"+score+"
YouLoss!");
}
}
System.out.println(temp.x+""+temp.y);
if((temp.x==0&&direction==4)||
(temp.x==horizontalGrid-1&&direction==2)||
(temp.y==0&&direction==1)||
(temp.y==verticalGrid-1&&direction==3))
{
snakeTimer.stop();
stopGame();
JOptionPane.showMessageDialog(null,
"YourScoreis"+score+"
YouLoss!");
}
if(direction!=mainSnake.snakeReDirection)
{
moveSnake(direction);
}
mainSnake.drawSnake(getGraphics(),singleWidthX,singleHeightY,cooPos);
drawBeanAndEBean(getGraphics());
}
}
publicvoidstopGame()
{
this.hasStoped=true;
this.snakeTimer.stop();
Graphics2Dg=(Graphics2D)GameFrame.this.getGraphics();
g.setColor(ColorGroup.COLOR_BACK);
super.paint(g);
configMenu.setVisible(true);
}
publicvoidresetGame()
{
System.gc();
this.hasStoped=false;
Graphics2Dg=(Graphics2D)GameFrame.this.getGraphics();
g.setColor(ColorGroup.COLOR_BACK);
super.paint(g);
this.mainSnake=newSnake();
this.createBean(bean);
this.eatedBean.clear();
mainSnake.drawSnake(getGraphics(),singleWidthX,singleHeightY,cooPos);
this.snakeTimer.start();
this.direction=2;
this.score=0;
this.scoreLabel.setText("Pause[SPACE]-Exit[ESC]");
}
privatevoidmoveSnake(intdirection)
{
if(mainSnake.checkBeanIn(this.bean))
{
this.score+=100;
this.scoreLabel.setText(this.info+"CurrentScore:"+this.score);
this.eatedBean.add(newPoint(this.bean));
this.createBean(this.bean);
}
mainSnake.changeDirection((Point)mainSnake.getLast(),direction);
Pointtemp=(Point)mainSnake.getFirst();
if(eatedBean.size()!=0)
{
if(eatedBean.getFirst().equals(temp))
{
eatedBean.remove(0);
}
else
{
mainSnake.clearEndSnakePiece(getGraphics(),temp.x,temp.y,
singleWidthX,singleHeightY,cooPos);
mainSnake.removeTail();
}
}
else
{
mainSnake.clearEndSnakePiece(getGraphics(),temp.x,temp.y,
singleWidthX,singleHeightY,cooPos);
mainSnake.removeTail();
}
}
privatevoiddrawBeanAndEBean(Graphicsg)
{
g.setColor(ColorGroup.COLOR_BEAN);
this.drawPiece(g,this.bean.x,this.bean.y);
g.setColor(ColorGroup.COLOR_EATEDBEAN);
snakeSq=eatedBean.iterator();
while(snakeSq.hasNext())
{
PointtempPoint=(Point)snakeSq.next();
this.drawPiece(g,tempPoint.x,tempPoint.y);
}
}
privatevoiddrawPiece(Graphicsg,intx,inty)
{
g.fillRoundRect(this.singleWidthX*x+1,
this.singleHeightY*y+1,
this.singleWidthX-2,
this.singleHeightY-2,
this.cooPos,
this.cooPos);
}
privatevoidcreateBean(Pointtemp)
{
LP:
while(true)
{
temp.x=(int)(Math.random()*this.horizontalGrid);
temp.y=(int)(Math.random()*this.verticalGrid);
snakeSq=mainSnake.iterator();
while(snakeSq.hasNext())
{
if(snakeSq.next().equals(newPoint(temp.x,temp.y)))
{
continueLP;
}
}
break;
}
}
}
ConfigMenu.java
packageSnakeGame;
importjava.awt.*;
importjava.awt.event.*;
importjavax.swing.*;
publicclassConfigMenuextendsJMenuBar
{
GameFrameowner;
JMenu[]menu;
JMenuItem[]menuItem;
JRadioButtonMenuItem[]speedItem,modelItem,standardItem;
privateUIManager.LookAndFeelInfolooks[];
publicConfigMenu(GameFrameowner)
{
this.owner=owner;
owner.setJMenuBar(this);
String[]menu_name={"SnakeGame","GameConfigure","GameHelp"};
menu=newJMenu[menu_name.length];
for(inti=0;i<menu_name.length;i++)
{
menu[i]=newJMenu(menu_name[i]);
menu[i].setFont(newFont("Courier",Font.PLAIN,12));
this.add(menu[i]);
}
String[]menuItem_name={"StartGame","StopGame","ExitGame",
"GameColor",
"About..."};
menuItem=newJMenuItem[menuItem_name.length];
for(inti=0;i<menuItem_name.length;i++)
{
menuItem[i]=newJMenuItem(menuItem_name[i]);
menuItem[i].setFont(newFont("Courier",Font.PLAIN,12));
menuItem[i].addActionListener(newActionHandler());
}
menu[0].add(menuItem[0]);
menu[0].add(menuItem[1]);
menu[0].addSeparator();
menu[0].add(menuItem[2]);
menu[1].add(menuItem[3]);
menu[2].add(menuItem[4]);
String[]inner_menu_name={"GameSpeed","WindowModel","GameStandard"};
JMenu[]inner_menu=newJMenu[inner_menu_name.length];
for(inti=0;i<inner_menu_name.length;i++)
{
inner_menu[i]=newJMenu(inner_menu_name[i]);
inner_menu[i].setFont(newFont("Courier",Font.PLAIN,12));
menu[1].add(inner_menu[i]);
}
ButtonGrouptemp1=newButtonGroup();
String[]speedItem_name={"Speed-1","Speed-2","Speed-3","Speed-4","Speed-5"};
speedItem=newJRadioButtonMenuItem[speedItem_name.length];
for(inti=0;i<speedItem_name.length;i++)
{
speedItem[i]=newJRadioButtonMenuItem(speedItem_name[i]);
inner_menu[0].add(speedItem[i]);
speedItem[i].setFont(newFont("Courier",Font.PLAIN,12));
speedItem[i].addItemListener(newItemHandler());
temp1.add(speedItem[i]);
}
ButtonGrouptemp2=newButtonGroup();
String[]modelItem_name={"Linux","Mac","Windows"};
modelItem=newJRadioButtonMenuItem[modelItem_name.length];
for(inti=0;i<modelItem_name.length;i++)
{
modelItem[i]=newJRadioButtonMenuItem(modelItem_name[i]);
inner_menu[1].add(modelItem[i]);
modelItem[i].setFont(newFont("Courier",Font.PLAIN,12));
modelItem[i].addItemListener(newItemHandler());
temp2.add(modelItem[i]);
}
ButtonGrouptemp3=newButtonGroup();
String[]standardItem_name={"60*40","45*30","30*20"};
standardItem=newJRadioButtonMenuItem[standardItem_name.length];
for(inti=0;i<standardItem_name.length;i++)
{
standardItem[i]=newJRadioButtonMenuItem(standardItem_name[i]);
inner_menu[2].add(standardItem[i]);
standardItem[i].setFont(newFont("Courier",Font.PLAIN,12));
standardItem[i].addItemListener(newItemHandler());
temp3.add(standardItem[i]);
}
looks=UIManager.getInstalledLookAndFeels();
}
privateclassActionHandlerimplementsActionListener
{
publicvoidactionPerformed(ActionEvente)
{
if(e.getSource()==menuItem[0])
{
owner.resetGame();
ConfigMenu.this.setVisible(false);
}
elseif(e.getSource()==menuItem[1])
{
owner.stopGame();
ConfigMenu.this.setVisible(true);
ConfigMenu.this.setMenuEnable(true);
}
elseif(e.getSource()==menuItem[2])
{
System.exit(0);
}
elseif(e.getSource()==menuItem[3])
{
ConfigDialogtemp=newConfigDialog(owner);
temp.setVisible(true);
}
elseif(e.getSource()==menuItem[4])
{
JOptionPane.showMessageDialog(null,"SankeGame2.0Version!
"+
"Author:FinalCore
");
}
}
}
privateclassItemHandlerimplementsItemListener
{
publicvoiditemStateChanged(ItemEvente)
{
for(inti=0;i<speedItem.length;i++)
{
if(e.getSource()==speedItem[i])
{
owner.snakeTimer.setDelay(150-30*i);
}
}
if(e.getSource()==standardItem[0])
{
owner.setGrid(60,40,5);
}
elseif(e.getSource()==standardItem[1])
{
owner.setGrid(45,30,10);
}
elseif(e.getSource()==standardItem[2])
{
owner.setGrid(30,20,15);
}
for(inti=0;i<modelItem.length;i++)
{
if(e.getSource()==modelItem[i])
{
try
{
UIManager.setLookAndFeel(looks[i].getClassName());
}catch(Exceptionex){}
}
}
}
}
publicvoidsetMenuEnable(booleantemp)
{
menu[1].setEnabled(temp);
}
}
ConfigDialog.java
packageSnakeGame;
importjava.awt.*;
importjava.awt.event.*;
importjavax.swing.*;
publicclassConfigDialogextendsJDialog
{
privateContainerc;
privateJFrameowner;
privateOwnPanel[]panel=newOwnPanel[4];
Boxbox1,box2;
privateJButtoncommitButton,cancelButton;
Color[]color=newColor[4];
publicConfigDialog(Frameowner)
{
this.owner=(JFrame)owner;
this.setSize(400,200);
this.setResizable(false);
this.setTitle("ConfigYourGame");
this.c=this.getContentPane();
this.c.setBackground(Color.WHITE);
this.c.setLayout(newFlowLayout());
this.box1=Box.createVerticalBox();
for(inti=0;i<panel.length;i++)
{
panel[i]=newOwnPanel();
panel[i].addActionListener(newActionHandler());
this.box1.add(panel[i]);
this.box1.add(Box.createVerticalStrut(4));
}
this.panel[0].setText("Background");
this.panel[1].setText("Snake");
this.panel[2].setText("Bean");
this.panel[3].setText("EatedBean");
this.panel[0].setBack(ColorGroup.COLOR_BACK);
this.panel[1].setBack(ColorGroup.COLOR_SNAKE);
this.panel[2].setBack(ColorGroup.COLOR_BEAN);
this.panel[3].setBack(ColorGroup.COLOR_EATEDBEAN);
this.box2=Box.createHorizontalBox();
this.commitButton=newJButton("断定");
this.commitButton.setFont(Font.getFont("Fixedsys"));
this.commitButton.addActionListener(newActionHandler());
this.cancelButton=newJButton("作废");
this.cancelButton.setFont(Font.getFont("Fixedsys"));
this.cancelButton.addActionListener(newActionHandler());
this.box2.add(this.commitButton);
this.box2.add(Box.createHorizontalStrut(20));
this.box2.add(this.cancelButton);
this.box1.add(this.box2);
this.c.add(this.box1,BorderLayout.NORTH);
this.setLocation((this.getToolkit().getScreenSize().width-this.getWidth())/2,
(this.getToolkit().getScreenSize().height-this.getHeight())/2);
this.setVisible(true);
}
publicvoidsetOwnerColor(Colortemp)
{
this.owner.getContentPane().setBackground(temp);
}
privateclassActionHandlerimplementsActionListener
{
publicvoidactionPerformed(ActionEvente)
{
for(inti=0;i<color.length;i++)
{
if(e.getSource()==panel[i].reButton())
{
color[i]=JColorChooser.showDialog(ConfigDialog.this,
"ChooseBackGroundColor",
Color.WHITE);
if(color[i]!=null)
{
panel[i].setBack(color[i]);
}
}
}
if(e.getSource()==commitButton)
{
color[0]=(color[0]==null?ColorGroup.COLOR_BACK:color[0]);
color[1]=(color[1]==null?ColorGroup.COLOR_SNAKE:color[1]);
color[2]=(color[2]==null?ColorGroup.COLOR_BEAN:color[2]);
color[3]=(color[3]==null?ColorGroup.COLOR_EATEDBEAN:color[3]);
ConfigDialog.this.setVisible(false);
ColorGroup.setCOLOR_BACK(color[0]);
owner.getContentPane().setBackground(color[0]);
ColorGroup.setCOLOR_SNAKE(color[1]);
ColorGroup.setCOLOR_BEAN(color[2]);
ColorGroup.setCOLOR_EATEDBEAN(color[3]);
ConfigDialog.this.dispose();
}
elseif(e.getSource()==cancelButton)
{
ConfigDialog.this.setVisible(false);
ConfigDialog.this.dispose();
}
}
}
}
classOwnPanelextendsJPanel
{
privateJLabeltemp1;
privateJTextFieldtemp2;
privateJButtontemp3;
OwnPanel()
{
temp1=newJLabel();
temp1.setFont(Font.getFont("Fixedsys"));
temp2=newJTextField();
temp3=newJButton("Change");
temp3.setFont(Font.getFont("Fixedsys"));
temp2.setEditable(false);
temp2.setColumns(10);
this.add(temp1);
this.add(temp2);
this.add(temp3);
this.setLayout(newGridLayout(1,3));
}
publicvoidsetButtonName(Stringtemp)
{
temp3.setName(temp);
}
publicvoidsetBack(Colortemp)
{
temp2.setBackground(temp);
}
publicvoidsetText(Stringtemp)
{
temp1.setText(temp);
}
publicObjectreButton()
{
returntemp3;
}
publicvoidaddActionListener(ActionListenerac)
{
temp3.addActionListener(ac);
}
}
Tools.java
packageSnakeGame;
importjava.awt.*;
importjavax.swing.*;
classColorGroup
{
staticColorCOLOR_BACK=Color.WHITE;
staticColorCOLOR_SNAKE=newColor(43,110,187);
staticColorCOLOR_BEAN=Color.BLUE;
staticColorCOLOR_EATEDBEAN=Color.CYAN;
staticvoidsetCOLOR_BACK(Colortemp)
{
COLOR_BACK=temp;
}
staticvoidsetCOLOR_SNAKE(Colortemp)
{
COLOR_SNAKE=temp;
}
staticvoidsetCOLOR_BEAN(Colortemp)
{
COLOR_BEAN=temp;
}
staticvoidsetCOLOR_EATEDBEAN(Colortemp)
{
COLOR_EATEDBEAN=temp;
}
}
finalclassMenuGet
{
publicstaticJMenugetMenu(Stringtemp)
{
JMenureMenu=newJMenu(temp);
reMenu.setFont(Font.getFont("Fixedsys"));
returnreMenu;
}
}
finalclassMenuItemGet
{
publicstaticJMenuItemgetMenuItem(Stringtemp)
{
JMenuItemreMenuItem=newJMenuItem(temp);
reMenuItem.setFont(Font.getFont("Fixedsys"));
returnreMenuItem;
}
}
因为能用到多少功能就用多少,不能用就不用!总的来说:要简单要性能好,可以不用框架。你说java复杂,就是因为你把java(j2ee)与这些框架混在了一起。
作者:
透明
时间:
2015-1-19 20:58
让你能够真正掌握接口或抽象类的应用,从而在原来的Java语言基础上跃进一步,更重要的是,设计模式反复向你强调一个宗旨:要让你的程序尽可能的可重用。
作者:
金色的骷髅
时间:
2015-1-24 16:48
J2SE开发桌面应用软件比起 VC,VB,DEPHI这些传统开发语言来说,优势好象并不明显。J2ME对于初学者来说,好象又有点深奥,而且一般开发者很难有开发环境。
作者:
因胸联盟
时间:
2015-1-30 18:58
在全球云计算和移动互联网的产业环境下,Java更具备了显著优势和广阔前景。
作者:
深爱那片海
时间:
2015-1-31 18:36
其实说这种话的人就如当年小日本号称“三个月拿下中国”一样大言不惭。不是Tomjava泼你冷水,你现在只是学到了Java的骨架,却还没有学到Java的精髓。接下来你得研究设计模式了。
作者:
蒙在股里
时间:
2015-2-1 16:09
自从Sun推出Java以来,就力图使之无所不包,所以Java发展到现在,按应用来分主要分为三大块:J2SE,J2ME和J2EE,这也就是Sun ONE(Open Net Environment)体系。J2SE就是Java2的标准版,主要用于桌面应用软件的编程;J2ME主要应用于嵌入是系统开发,如手机和PDA的编程;J2EE是Java2的企业版,主要用于分布式的网络程序的开发,如电子商务网站和ERP系统。
作者:
灵魂腐蚀
时间:
2015-2-4 15:37
是一种由美国SUN计算机公司(Sun Microsystems, Inc.)所研究而成的语言
作者:
谁可相欹
时间:
2015-2-8 20:40
是一种突破用户端机器环境和CPU
作者:
山那边是海
时间:
2015-2-18 06:54
[url]http://www.jdon.com/[/url]去下载,或到同济技术论坛的服务器[url]ftp://nro.shtdu.edu.cn[/url]去下,安装上有什么问题,可以到论坛上去提问。
作者:
乐观
时间:
2015-3-6 01:17
是一种语言,用以产生「小应用程序(Applet(s))
作者:
柔情似水
时间:
2015-3-8 16:12
是一种使网页(Web Page)产生生动活泼画面的语言
作者:
分手快乐
时间:
2015-3-11 18:20
你快去找一份Java的编程工作来做吧(如果是在校学生可以去做兼职啊),在实践中提高自己,那才是最快的。不过你得祈祷在公司里碰到一个高手,而且他 还愿意不厌其烦地教你,这样好象有点难哦!还有一个办法就是读开放源码的程序了。我们知道开放源码大都出自高手,他们设计合理,考虑周到,再加上有广大的程序员参与,代码的价值自然是字字珠叽,铿锵有力(对不起,偶最近《金装四大才子》看多了)。
作者:
再见西城
时间:
2015-3-17 11:10
其实说这种话的人就如当年小日本号称“三个月拿下中国”一样大言不惭。不是Tomjava泼你冷水,你现在只是学到了Java的骨架,却还没有学到Java的精髓。接下来你得研究设计模式了。
作者:
第二个灵魂
时间:
2015-3-17 17:10
关于设计模式的资料,还是向大家推荐banq的网站 [url]http://www.jdon.com/[/url],他把GOF的23种模式以通俗易懂的方式诠释出来,纯Java描述,真是经典中的经典。
作者:
只想知道
时间:
2015-3-17 20:09
你一定会高兴地说,哈哈,原来成为Java高手就这么简单啊!记得Tomjava也曾碰到过一个项目经理,号称Java很简单,只要三个月就可以学会。
作者:
莫相离
时间:
2015-3-24 23:35
Java 不同于一般的编译执行计算机语言和解释执行计算机语言。它首先将源代码编译成二进制字节码(bytecode),然后依赖各种不同平台上的虚拟机来解释执行字节码。从而实现了“一次编译、到处执行”的跨平台特性。
作者:
仓酷云
时间:
2015-3-31 10:04
你可以去承接一些项目做了,一开始可能有些困难,可是你有技术积累,又考虑周全,接下项目来可以迅速作完,相信大家以后都会来找你的,所以Money就哗啦啦的。。。。。。
作者:
飘灵儿
时间:
2015-4-21 20:54
还好,SUN提供了Javabean可以把你的JSP中的 Java代码封装起来,便于调用也便于重用。
作者:
小魔女
时间:
2015-4-28 01:56
是一种使网页(Web Page)产生生动活泼画面的语言
作者:
变相怪杰
时间:
2015-5-1 04:10
还好,SUN提供了Javabean可以把你的JSP中的 Java代码封装起来,便于调用也便于重用。
欢迎光临 仓酷云 (http://ckuyun.com/)
Powered by Discuz! X3.2