易截截图软件、单文件、免安装、纯绿色、仅160KB

Java实验心得

第1章 Java语言概述
1.1 知识概括
1.2 实验练习
1.2.1 一个简单的应用程序
class里不能再有class,无论有没有public修饰,class都是平行关系,在bin文件夹中会产生各自的字节码文件。同一个.java源文件中至多有一个public class,如果不想再一个源文件中写多个类,就各自写源程序,并把类公用,即用public修饰。
1.2.2 一个简单的Java Applet程序
Java Applet绘制文字:g.drawString("这是一个Java Applet程序",20,40);
嵌入HTML:<Applet code=FirstApplet.class width=300 height=300></Applet>
(此时应与.class字节码放于同一文件夹中)
1.3 知识扩展-联合编译
每一个.java文件中的类都应该用public修饰,并需要保存在同一目录中。


相关文档:

java中使用dom4j读xml文件简单教程

需要dom4j.jar文件 ,自行下载。 test.xml 1: <?xml version="1.0" encoding="gbk"?>
2:
3: <students>
4: <person sex="男" age="21">
5: <id>1</id>
6: <name>章治鹏</name>
7: <homepage&g ......

如何 使用 java 操纵 XML 文件


Introduction to XML and XML With Java  
 
If you are looking for sample programs to parse a XML file using DOM/SAX parser or looking for a program to generate a XML file please proceed directly to programs.
This small tutorial introduces you to the basic concepts of XML and using Xer ......

java 解析MP3文件


首先需要知道的是,MP3文件的文件信息都放在文件最后的128个字节里面,这128个字节分别存储的信息如下:
char Header[3];    /* 标签头必须是"TAG"否则认为没有标签 */
char Title[30];    /* 标题 */
char Artist[30];   /* 作者&n ......

Object Ordering java 排序

Object Ordering
A List l may be sorted as follows.
Collections.sort(l);
If the List consists of String elements, it will be sorted into alphabetical order. If it consists of Date elements, it will be sorted into chronological order. How does this happen? String and Date both implement the Compara ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号