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貢獻1829條經(jīng)驗 獲得超4個贊
呃,這個,應(yīng)該是這樣
1 | val box = Box( "5000" , "big" ) |
或者
1 | val box = Box(price = "5000" ,size = "big" ) |
盡量使用 val ,當然這也根據(jù)實際情況,并且,不要使用Eclipse了,支持性不好,換 Idea 吧
- 1 回答
- 0 關(guān)注
- 911 瀏覽
添加回答
舉報
0/150
提交
取消