mirror of
https://gitee.com/gaohongy/Java-Book.git
synced 2026-07-16 11:13:49 +00:00
代码行数可以显示吗
This commit is contained in:
+2
-2
@@ -3,7 +3,7 @@ Java基础(第二章)
|
||||
## 1. 如何打印输出
|
||||
|
||||
|
||||
这一张中,我们使用面向过程(C语言的方式)来了解Java的基本语法。虽然说是和面向对象无关,但是我们需要一个函数入口(main)函数,这个函数上一章讲过,有固定的格式,且这个函数必须定义在一个Public类中。
|
||||
**这一章中,我们使用面向过程(C语言的方式)来了解Java的基本语法。虽然说是和面向对象无关,但是我们需要一个函数入口(main)函数,这个函数上一章讲过,有固定的格式,且这个函数必须定义在一个Public类中。**
|
||||
|
||||
### 1.1. ComputeArea.java
|
||||
|
||||
@@ -11,7 +11,7 @@ Java基础(第二章)
|
||||
|
||||
ComputeArea.java
|
||||
|
||||
```java
|
||||
```java {.line-numbers}
|
||||
public class ComputeArea {
|
||||
public static void main(String[] args) {
|
||||
double radius = 0.0; // Declare radius
|
||||
|
||||
Reference in New Issue
Block a user