Unable to convert a string value from a web element to double
<p>I'm trying to convert a String from a webelement into an integer.</p>

<p>However, I'm getting following error in <code>parseInt</code></p>

<p><a href="https://i.stack.imgur.com/WED20.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WED20.png" alt="enter image description here"></a>   </p>

<pre><code>public String getLoanAmount() {
    return loanAmount.getText();
    int i = Integer.parseInt(driver.findElement(By.id("00N28000001bbuD_ileinner"))).getText();
    double d = i;
    if ((d &lt; 15000) || (d &gt; 35000)) {
        System.out.println("Error: Loan Amount should not be NULL and should be between 5000 to 35000 AUD.");
    }
    else {
        System.out.println("Entered value in the Loan Amount field is within appropriate range.");
    }
}
</code></pre>

<p>Can anyone assist on this issue? First of all is this possible? and are the steps correct to achieve it?</p>