Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/main/java/co/ivi/jus/text/review/bigbenfather/Island.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2021, Xuelei Fan. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
Comment on lines +1 to +3
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个Copyright可以改成你自己的名字了。

*/

package co.ivi.jus.text.review.bigbenfather;

public class Island {
public static void main(String[] args) {
System.out.println("""
\s No man is an island,
\s Entire of itself,
\sEvery man is a piece of the continent,
\s A part of the main.
""");
Comment on lines +11 to +15
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么有个"\s"的前缀呢? 有没有试试去掉行不行?

}
}
17 changes: 17 additions & 0 deletions src/main/java/co/ivi/jus/text/review/bigbenfather/TableIsland.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* Copyright (c) 2021, Xuelei Fan. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*/

package co.ivi.jus.text.review.bigbenfather;

public class TableIsland {
public static void main(String[] args) {
System.out.println("""
\s No man is an island,
\s Entire of itself,
\sEvery man is a piece of the continent,
\s A part of the main.
""");
Comment on lines +10 to +15
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

测试Tab是一个很棒的想法。同样的问题,“\s”是必须要加的吗?

}
}