当前位置: 技术问答>java相关
JAVA中没有宏,那编程和调试起来不是很麻烦吗?有没有一些折中办法?
来源: 互联网 发布时间:2015-07-10
本文导语: (空) | use assert in 1.4 wrap up the System.out as another class like Debug. such as: class Debug{ public final debug(String msg){System.out.println(msg);} } when publishing, comment out the System.out.println in the ...
(空)
|
use assert in 1.4
wrap up the System.out as another class like Debug.
such as:
class Debug{
public final debug(String msg){System.out.println(msg);}
}
when publishing, comment out the System.out.println in the debug() method.
Theoretically, static final variable does not have to use memory.
Even though Java does, Java does not care that little memory overhead at all.
wrap up the System.out as another class like Debug.
such as:
class Debug{
public final debug(String msg){System.out.println(msg);}
}
when publishing, comment out the System.out.println in the debug() method.
Theoretically, static final variable does not have to use memory.
Even though Java does, Java does not care that little memory overhead at all.
|
宏是什么东西啊,呵,现在都什么年代了,谁还用宏啊,java里面有输出测试语句,在jbuilder里面也有debug。
|
用JBUILDER7。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。