Extract letters from a field and make it on another
<pre><code>public class Driver {
    // fields

    private String Id;

    Id = name.substring(0, 3);

    public Driver(String f1, String f2, int f3, String f4) {
        // constructor
    }
}
</code></pre>

<p>Well, I've changed the code. It's much clear.
I want to extract the first three letters from nomC, the first letter from prenomC and the last two digit from anneeEC and make them on a new field. Why it shows an error on line « private String numId; »: Syntax error on token ";",, expected?</p>
