哪里出錯了啊
public class HelloWorld{
??? public static void main(String[] args) {
???? int one = 10 ;
??????? int two = 20 ;
??????? int three = 0 ;
??????? three=one+two;
??????? System.out.println("three=one+two==>"+there);?
???
?}
}
public class HelloWorld{
??? public static void main(String[] args) {
???? int one = 10 ;
??????? int two = 20 ;
??????? int three = 0 ;
??????? three=one+two;
??????? System.out.println("three=one+two==>"+there);?
???
?}
}
2015-11-25
舉報
2015-11-25
這2行有什么區(qū)別?發(fā)現(xiàn)了沒,你把three敲成了there。上面并沒有定義there呀。
2015-11-29
哈哈,代碼思路對著呢,就視拼寫出錯了
2015-11-26
考眼力呢。。。自己下個eclipse 在本地測試吧 這些問題都可以避免了
2015-11-25
英文不過關(guān),哈哈