public NodePl(char letter) { total = 0; counter = 0; this.letter = letter; children = new NodePl[36]; }
private NodePl[] createChildren() { NodePl[] result = new NodePl[36]; for (int i = 0; i < 36; i++) { switch (i) { case 26: result[i] = new NodePl('ą'); break; case 27: result[i] = new NodePl('ć'); break; case 28: result[i] = new NodePl('ę'); break; case 29: result[i] = new NodePl('ł'); break; case 30: result[i] = new NodePl('ń'); break; case 31: result[i] = new NodePl('ó'); break; case 32: result[i] = new NodePl('ś'); break; case 33: result[i] = new NodePl('ż'); break; case 34: result[i] = new NodePl('ź'); break; case 35: result[i] = new NodePl('\0'); break; default: result[i] = new NodePl((char)(0x61 + i)); break; } } return(result); }