gpt4 book ai didi

java - 将系统日期添加到 BlueJ 类模板

转载 作者:行者123 更新时间:2023-12-01 12:35:34 47 4
gpt4 key购买 nike

我刚刚开始使用 BlueJ 开发,对于我的编程项目,我希望能够像这样记录它们:

/*
My Name
The System Date
Program Name
*/

如您所见,我希望能够提取系统日期(类的创建日期),以便我可以将其包含在注释中。那可能吗?我知道 BlueJ 使用 $ 来表示它使用的变量,例如 $PKGNAME,所以我想知道是否有人知道我可以用来从系统时钟。我在 Windows 上。

最佳答案

看来你运气不好:

The fields you see in the default templates are all there are. There are no more.

And, yes, you are right: they are not documented any further. You cannot define additional fields yourself. (If there was a good use for it, we could define additional fields. So if you got a useful idea, tell us.)

Michael

摘自讨论BlueJ file templates: .tmpl file variables .

关于java - 将系统日期添加到 BlueJ 类模板,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25633145/

47 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com