爪哇 - 如何使对方(水平)旁边的列表中去,而不是下降(垂直)。爪哇、中去、而不是、对方

2023-09-11 07:41:35 作者:Grind(折磨)

我怎么能让对方(水平)旁边的列表中去,而不是下降(垂直)。

how do I make the list go beside each other (horizontally) instead of going down (vertically).

例如:

一月(这是我不断收到) S M T W&五六 1

January (this is what I keep getting) S M T W T F S 1

2

3

4

5

...

一月(这是我想要得到) S M T W&五六 1 2 3 4 5 6 7 8 9 ...

January (this is what I wanted to get) S M T W T F S 1 2 3 4 5 6 7 8 9 ...

感谢任何帮助将是AP preciated,我在这个新的,我不明白。 :)

Thanks any help would be appreciated, I'm new at this and I can't figure it out. :)

推荐答案

使用:

System.out.print("Value");

来代替:

System.out.println("Value");

和不要忘记添加

System.out.println(""); 

在年底刷新缓冲区。

at the end to flush the buffer.