提交 2424e10c 编写于 作者: 沉默王二's avatar 沉默王二 💬

1

上级 c688110c
package com.cmower.java_demo.chouxianglei;
abstract class Test {
public static void main(String[] args) {
System.out.println("我是抽象类的非抽象方法");
}
}
package com.cmower.java_demo.duoxiancheng;
class Chenmo {
private int lineCount = 0;
private int wordCount = 0;
public void write() {
String words = "我这一辈子,走过需要地方的路,行过需要地方的桥,看过许多次的云,喝过许多种类的酒,却只爱过一个正当年龄的人。";
System.out.println(words);
synchronized (this) {
lineCount++;
wordCount++;
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册