質問: new FileReader(file); int ch; }catch(FileNotFoundException e){ System.out.println(e); }catch(IOException e){ System.out.println(e); }return null; } private static Node BinaryTree(String n){ //ノード作成 if(name==foundInText) { //ここにif文を使いなまえがあるかどうかを調べる System.out.println((char)ch); }else { System.out.println("The name was not found. Enter anotehr name."); } } } ``` file "name..txt" Buffy 0 Nathaniel 64 Elyse 823 Shyann 771 Saige 942 Arno 0 Ciara 284 Flo 0 Yamilet 804 Clay 402 ```
回答: TreeMapを使って見たらどうですか? TreeMap