62,616
社区成员
发帖
与我相关
我的任务
分享
public class Test
{
protected String url;
private String var;
private int scope;
private void init() {
this.url = (this.var = null);
this.scope = 1;
}
try (BufferedReader br = Files.newBufferedReader(path)) {
String line;
while ((line = br.readLine()) != null) {
//
}
}
int len = 0;
FileInputStream fis = null;
byte [] buf = new byte[1024];
while((len = fis.read(buf))!=-1){
//跟这个差不多的意思
}
//下面这种写法也是没问题的
double a = .5;
double b = 5.;