Discuss / Java / 这里需要修改下吧

这里需要修改下吧

Topic source

笑的不真

#1 Created at ... [Delete] [Delete and Lock User]

var reader = new BufferedReader(new InputStreamReader(input, StandardCharsets.UTF_8)); var writer = new BufferedWriter(new OutputStreamWriter(output, StandardCharsets.UTF_8));

这里var关键字是不是要改称下面这样

BufferedReader reader = new BufferedReader(new InputStreamReader(input, StandardCharsets.UTF_8)); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(output, StandardCharsets.UTF_8));

Delete63703

#2 Created at ... [Delete] [Delete and Lock User]

这是为什么呢

Dominga丶

#3 Created at ... [Delete] [Delete and Lock User]

JDK版本不同,var是jdk10才有的。


  • 1

Reply