我的节点类中有以下getElement对象: public T getElement () { } 在一个通用的T类中,我有以下更加专门化的getElement对象来访问前面存储在数组中的链表: public T getElement(int col, int row) 然后在另一个类中,我有以下使用这些对象的变量赋值: int x= intGrid.getElement我不
我正在创建一个包含两个棋盘的游戏:indexesOfBoard.put("A", ((morris.START[0].charAt(0))));The method put(String, String) in the type HashMap<String,String> is not applicable for the arguments (String, char)
如果我将HashMap更改为< String, char>,我将得