error: cannot find symbol
string name="???";
^
symbol: class string
location: class HelloWorld
1 error 為什么會這樣 哪個大神來解釋下
string name="???";
^
symbol: class string
location: class HelloWorld
1 error 為什么會這樣 哪個大神來解釋下
2014-12-03
public class A5{
public static void main(String args[]){
System.out.println("打印倒直角三角形");
for(int i=0;i<=3; i++){
for(int j=0;j<=3-i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
public static void main(String args[]){
System.out.println("打印倒直角三角形");
for(int i=0;i<=3; i++){
for(int j=0;j<=3-i;j++){
System.out.print("*");
}
System.out.println();
}
}
}
2014-12-03
這個跟網(wǎng)絡(luò)有很大的關(guān)系,只要網(wǎng)絡(luò)不好,更新得就很慢,所以會出現(xiàn)更改代碼后不同步的現(xiàn)象,不過要是真心學(xué)習(xí)的話,光看結(jié)果是沒啥用的,用syso方法把結(jié)果全部輸出,只要符合答案,都是通過的,哈哈,還是認真寫下,等待網(wǎng)絡(luò)反映,看看自己的學(xué)習(xí)成果好點,不然也沒必要再這里浪費時間
2014-12-02