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

Java第二次上机(正则表达式)

编写一个程序,判断一个字符串是否是合法的Java标识符;
//create string
import java.util.regex.*;
public class Split {
public static void main (String[] args) {
Pattern pattern = Pattern.compile("[,]");
String[] arrStr = pattern.split("abstract,break,byte,boolean,catch,case,class,char,continue,default,double,do,else,extends,false,final,float,for,finally,if,import,implements,int,interface,instanceof,long,length,native,new,null,package,private,protected,public,return,switch,synchronized,short,static,super,try,true,this,throw,throws,threadsafe,transient,void,while");
int length = arrStr.length;
for(int i=0; i<length; ++i) {
System.out.print("\"" + arrStr[i] + "\"" + ",");
}
System.out.println();
}
}
import java.util.*;
public class RE {
public static void main (String[] args) {
String[] keyword = new String[] {"abstract","break","byte","boolean","catch","case","class","char","continue","default","double","do","else","extends","false","final","float","for","finally","if","import","implements","int","interface","instanceof","long","length","native","new","null","package","private","protected","public","return","switch","synchronized","short","static","super","try","true","this","throw","throws","threadsafe","transient","void","while"};
Scanner in = new Scanner(System.in);
p("Input String:");
String


相关文档:

Java反编译工具Eclipse插件 Jode Decompiler

Java反编译工具Eclipse插件--Jode Decompiler    
安装非常的简单:
help => Software Updates => Find and Install... => Search for new features to install,
单击"New Remote Site..." 在URL栏输入 http://www.technoetic.com/eclipse/update ,
然后下一步,就可以看到“j ......

java值传递与引用传递


1、对象是按引用传递的---带"="号的赋值操作
2、Java 应用程序有且仅有的一种参数传递机制,即按值传递---由"函数调用"引起的
3、按值传递意味着当将一个参数传递给一个函数时,函数接收的是原始值的一个副本
4、按引用传递意味着当将一个参数传递给一个函数时,函数接收的是原始值的内存地址,而不是值 的副本
5、注 ......

Java 运算符优先级


优先级
运算符
名称
1
( )
括号
2
[ ] , 。
后缀运算符
3
- (一元运算符,取负数) , ! , ~ , ++ , --
一元运算符
4
* , / , %
乘,除,取模
5
+, -
加,减
6
>> , << , >>>
移位运算符
7
> , < , >= , <= , instanceof
关系运算符
8
==,!=
等于,不等于
9
......

Nutz Java 编码规范 (V1.0)

Nutz Java 编码规范 (V1.0) By:zozoh 0. 规范的规范 1. 代码格式 2.1 包 2.2 类和接口 2.3 成员变量 2.4 常量 2.5 局部变量 2.6 成员函数和静态函数 ......

MySql与Java的时间类型

MySql的时间类型有          Java中与之对应的时间类型
date                                  ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号