store comparators objects in array
<p>I have defined 4 comparators for my object like this:</p>

<pre><code>public static Comparator&lt;mObject&gt; comp0 = new Comparator&lt;mObject&gt;() {

        @Override
        public int compare(mObject l, mObject r) {
            ...compare
        }
    };

public static Comparator&lt;mObject&gt; comp1 = new Comparator&lt;mObject&gt;() {

        @Override
        public int compare(mObject l, mObject r) {
            ...compare
        }
    };

public static Comparator&lt;mObject&gt; comp2 = new Comparator&lt;mObject&gt;() {

        @Override
        public int compare(mObject l, mObject r) {
            ...compare
        }
    };

public static Comparator&lt;mObject&gt; comp4 = new Comparator&lt;mObject&gt;() {

        @Override
        public int compare(mObject l, mObject r) {
            ...compare
        }
    };
</code></pre>

<p>Now i want to create an array with the 4 comparators ,like this :</p>

<pre><code>public final static Comparator&lt;mObject&gt;[] Object_comparators = { comp0,
        comp1,
        comp2,
        comp3};
</code></pre>

<p>but Eclipse underlines everything between {..} like it is an error .Why is it ,and how could i fix it ?</p>
