Skip to content
Open

dd #70

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
2 changes: 2 additions & 0 deletions compile-run-with-classpath/solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
# First argument is blank: true
# Second argument is blank: true
# Third argument is blank: false
javac -cp commons-lang3-3.9.jar StringIsBlank.java
java -cp commons-lang3-3.9.jar:. StringIsBlank
4 changes: 4 additions & 0 deletions read-env-variable-system-property/solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
# 使得该java命令输出:
# Environment variable AAA: $A;
# System property BBB: '
export AAA='$A;'
javac ReadEnvironmentVariableAndSystemProperty.java
java -DBBB=\' ReadEnvironmentVariableAndSystemProperty

2 changes: 2 additions & 0 deletions system-out-system-err/solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
# 请在这里编写两条命令:
# 1. 在当前目录中,使用javac命令编译PrintSystemOutSystemErr.java
# 2. 在当前目录中,使用java命令运行PrintSystemOutSystemErr,使其标准输出和标准错误都重定向到当前目录下一个名为output.txt的文件中
javac PrintSystemOutSystemErr.java
java PrintSystemOutSystemErr 2>&1 >output.txt