incompatible types: char cannot be converted to CharSequence how to fix that? ScrabblePlayer.java public class ScrabblePlayer { // A String representing all of the tiles that this player has private String tiles; public ScrabblePlayer() { tiles = ""; } public String getTiles() { return t...
extends CharSequence> becomes () -> Iterator<CharSequence> 因此,如果lambda表达式是隐式类型的,则LHS变为Iterator<CharSequence>,RHS为Iterator<String>。因此,一个错误: 代码语言:javascript 复制 Iterator<String> cannot be converted to Iterator<CharSequence> 这种行为在JLS§18.5.3中也有解释。 收藏分享票数...