Java 打印到终端时出现格式问题
公共阶级旗帜{Java 打印到终端时出现格式问题,java,terminal,Java,Terminal,公共阶级旗帜{ // Main method public static void main(String [] args) { // Prints out CSC220 System.out.println(" ******* *********** *********** ********** ****"); System.out.println("*** ** **
// Main method
public static void main(String [] args) {
// Prints out CSC220
System.out.println(" ******* *********** *********** ********** ****");
System.out.println("*** ** ** ** * *");
System.out.println("*** ** ** ** * *");
System.out.println("** ********** ** ** * *");
System.out.println("** ** ** ** * *");
System.out.println("** ** ** ** * *");
System.out.println("**** ** *** *** * *");
System.out.println(" ******** ********** *********** *********** ****");
}
}
当我在终端上运行它时,它如下所示:
我能想到的唯一原因是,您可能在打印的文本中混合了制表符和空格。不要混合制表符和空格(只使用空格)。谢谢!工作!!!不,我没有抄艾略特的答案。我看了两遍所附的照片,花了不少时间。我甚至对他的评论投了赞成票:)如果你不认识某个人,就让他们放心。