Multiple markers at this line - Unexpected tokens (use ';' to separate expressions on the same line) - Expecting ')' - No value passed for parameter voice - Unresolved reference: chactor
1 回答

長風秋雁
TA貢獻1757條經驗 獲得超7個贊
呃,這個,應該是這樣
1 | val box = Box( "5000" , "big" ) |
或者
1 | val box = Box(price = "5000" ,size = "big" ) |
盡量使用 val ,當然這也根據(jù)實際情況,并且,不要使用Eclipse了,支持性不好,換 Idea 吧
- 1 回答
- 0 關注
- 3032 瀏覽
添加回答
舉報
0/150
提交
取消