java catching exceptions
<pre><code>    try {
        if (x.length == Styles.size()) {

        }
        else{
             throws InputMismatchException ;
        }
    } finally {
        OutputFileScanner.close();
    }
</code></pre>

<p>I get compile error in method contains code above , is there any way to throw InputMismatchException in else block ?</p>
