0

“奇怪的格式”

在此处输入图像描述

 public static void main(String[] arguments) {
        // get current time and date
        Calendar now = Calendar.getInstance();
        int hour = now.get(Calendar.HOUR_OF_DAY);
        int minute = now.get(Calendar.MINUTE);
        int month = now.get(Calendar.MONTH) + 1;
        int day = now.get(Calendar.DAY_OF_MONTH);
        int year = now.get(Calendar.YEAR);

        // display greeting
        if (hour < 12) {
            System.out.println("Good morning.

这是我的问题的主要内容,尝试了 eclipse 一段时间并不太喜欢它并切换回 eclipse。现在 7.4 是最新版本,我下载它认为它会更好。但是,当您查看我的代码的附加图像时,所有间距都被弄乱了。我希望代码看起来正常(如上面的代码)。我知道这并没有真正的区别,但是阅读起来很痛苦。有没有办法让 7.4 遵循一些以前版本的 NetBeans 的格式规则

4

0 回答 0