派生自 projectDept/qhighschool

111
EricsHu
2023-05-11 792da3dcdef9679c36adc4d54f3bff0f415c0fe2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.qxueyou.scc.Sensitive;
 
public class Word implements Comparable<Word>{
    public char c;
    public List next = null;
 
    public Word(char c){
        this.c = c;
    }
 
    @Override
    public int compareTo(Word word) {
        return c - word.c;
    }
 
    public String toString(){
        return c + "(" + (next == null ? null : next.size()) + ")";
    }
}