怎么回事?求大神指教
import java.util.Scanner;
public class Sanjiao {
? ? public static void main(String[] args) {
? ? ? ? Scanner input =new Scanner(System.in);
? ? System.out.print("打印\"直角三角\"行數(shù):");
? ? ? ? int n = input.nextInt();
for (int i = 1; i <= n; i++ ) {
for (int j = 1; j <= i ; j++ ?) {
? ? ? ? ? ? ? ??
System.out.print("*");
}
System.out.println();
}
}
}
怎么回事?輸出的字?
2015-02-12
編碼格式問題!
2015-02-12
格式下邊有字符編碼設(shè)置
2015-02-12
需要編譯的文件編碼格式改成UTF-8或者gbk試試,你用的什么編輯器?