testthing.java
来自「java(sl275课程习题解module1-module3共7道习题的题目以及」· Java 代码 · 共 10 行
JAVA
10 行
public class TestThing {
public static void main(String[] args) {
Thing thing1 = new Thing();
Thing thing2 = new Thing(42);
System.out.println("thing1.x is " + thing1.getX());
System.out.println("thing2.x is " + thing2.getX());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?