assign characters to elements of an array which isnt of the int, string, double, etc. class
<p>So I have a method that reads a file and assigns classes to elements of an array. How do I assign a special character for each class that I am giving to my array?</p>

<p>The array is of the class "Element" that has 3 attributes (<code>int</code>, <code>int</code>, <code>char</code>)
and those classes (Fantasma, which is a subclass of "Element").</p>

<pre><code>public void ReadFile() throws FileNotFoundException
{    
    Scanner scan = new Scanner(new File("inicio.txt"));
    while (scan.hasNext())
    {
        String line = scan.next();

        if (line.equals("Pared"))
        {
            int i = scan.nextInt();
            int j = scan.nextInt();

            _mundo = new Pared[i][j];
        }

        else if (line.equals("Fantasma"))
        {
            int i = scan.nextInt();
            int j = scan.nextInt();

            _mundo = new Fantasma[i][j];
        }
    }
}
</code></pre>
