problems when declaring and assigning a value to a variable
<p>I have this class, with a variable called Palabra, but I don't know how to declare it.</p>

<pre><code>public Paraula() {
    lletres = new char[MAXIM];
    llargaria = 0;
}

public static Paraula llegir() {
    Paraula nova = new Paraula();
    botarBlancs();
    while ((lletra != fiSequencia) &amp;&amp; // No ha acabat la seqüència
            (lletra != blanc)) { // Hi ha prou espai
        nova.lletres[nova.llargaria++] = lletra;
        lletra = leerCarTeclado();
    }
    return nova;
}

public String toString() {
    String msg = "";
    for (int idx = 0; idx &lt; llargaria; idx++) {
        msg += lletres[idx];
    }
    return msg;
}

public boolean esIgualA(Paraula b) {
    boolean iguals = llargaria == b.llargaria;
    for (int idx = 0; (idx &lt; llargaria) &amp;&amp; iguals; idx++) {
        iguals = lletres[idx] == b.lletres[idx];
    }
    return iguals;
}

public static boolean iguals(Paraula a, Paraula b) {
    return a.esIgualA(b);
}

public boolean buida() {
    return llargaria == 0;
}

public static void botarBlancs() {
    while (lletra == blanc) {
        lletra = leerCarTeclado();
    }
}

public static void botarParaula() throws Exception {
    while ((lletra != '.') &amp;&amp; (lletra != blanc)) {
        lletra = leerCarTeclado();
    }
}
static public char leerCarTeclado() {
    char res = '.';
    if (frase != null) {
        res = frase[indice++];
    }
    return res;
}
</code></pre>

<p>Can someone help me??
I'm trying to declare two Paraula variables and then comparing them with one of the methods above, but I'm having trouble trying to assign a value to a Paraula. I'm really stuck and I need help. I think it can't be so complicated!!! But I don't know what I'm doing wrong.</p>

<pre><code>Paraula tipo;
tipo=Paraula.llegir();
Paraula tipo1;
tipo1 = {'t','1'};  // here's where it doesn't work - (illegal start of expression)
</code></pre>

<p>How can I do it??</p>

<p>Thanks!!</p>