mirror of
https://gitee.com/gaohongy/Java-Book.git
synced 2026-07-16 10:43:51 +00:00
修改常量定义的类型
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ final datatype CONSTANTNAME = VALUE;
|
||||
例如:
|
||||
|
||||
```java
|
||||
final int PI = 3.14;
|
||||
final double PI = 3.14;
|
||||
final String ERROR="ERROR";
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user