如何将详细的 NetBeans 输出限制为所需的行

问题描述

我写了几行打印,输出如此冗长,我不得不寻找结果,几乎和我输入那几行代码所用的时间一样多。

我是 NetBeans 的新手,但我在一些视频教程中看到了一些非常简洁的输出

虽然我所期望的只是打印在 4 行以下,但我总是在底部看到整个内容

======< WELCOME >======
Code starts from here:

This is the main method.
This user used 'jdoe' to login to his account

我想知道是否有更熟悉 NetBeans 的人可以提供一些有关如何使其更美观和更易于阅读的提示

cd /home/admin/NetBeansprojects/misc; JAVA_HOME=/usr/lib/jvm/java-15-oracle /snap/netbeans/45/netbeans/java/maven/bin/mvn "-Dexec.args=-classpath %classpath java_basics.Methods" -Dexec.executable=/usr/lib/jvm/java-15-oracle/bin/java -Dexec.classpathScope=runtime process-classes org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
Scanning for projects...

-------------------------< com.mycompany:JAVA >--------------------------
Building JAVA 1.0-SNAPSHOT
--------------------------------[ jar ]---------------------------------

--- maven-resources-plugin:2.6:resources (default-resources) @ JAVA ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/admin/NetBeansprojects/JAVA/src/main/resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ JAVA ---
Changes detected - recompiling the module!
Compiling 7 source files to /home/omutwar/NetBeansprojects/JAVA/target/classes

--- exec-maven-plugin:3.0.0:exec (default-cli) @ JAVA ---
======< WELCOME >======
Code starts from here:

This is the main method.
This user used 'jdoe' to login to his account
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time:  1.544 s
Finished at: 2021-04-23T22:36:43-07:00
------------------------------------------------------------------------

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)