/* * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license * Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template */ package trees; import java.util.Comparator; class CharComparator implements Comparator { @Override public int compare(Object a,Object b) { Character ca = (Character)a; Character cb = (Character)b; return ca - cb; } }