主要介绍java和javac命令的使用,
分带package和不带package,
如果要用到第3方包,则使用-classpath参数
1.不带package
Hello.java
public class Hello
{
public static void main(String[] args){
System.out.println("hello");
}
}
c:/java/hello/Hello.java
编译
c:/java/hello>javac Hello.java
生成class文件
c:/java/he ...
set the stage for: provide the background or foundation for
run across: encoutner
ship off: send
grind down: reduce by force
hand in hand: together
draw attention: attract attetion
失恋时,只有2种可能,要么你爱她她不爱你,或者相反。那么,当你爱的人不再爱你,或者从来没爱过你时,你没有遗憾,因为你失去的只是一个不爱你的人而已。
任何事没有永远,也别问怎样才能永远。生活有很多无奈,请尽量充实自己,充实生活。请善待生活……
tell sth from sth: 辨别2者区别
take for granted: become used to
bump into: 撞上
break down: 分解,分类
take on: 承担
遇到个这样的错误
byte[] bKey=new byte[1];
ArrayList byteList=new ArrayList();
for(int i=0;i<10;i++){
MessagePacket packet=new MessagePacket();
packet.setKey(bKey);
byteList.add(packet);
}
for(int j=0;j<byteList.size();j++) ...







评论排行榜