Lost in the Math of a method
<p>The method should increase the balance by the given amount. However, the maximum balance on a card is 150. In case the balance after loading money would be more than that, it should be truncated to 150.</p>

<p>Method</p>

<pre><code>public void loadMoney(int amount) {
    if(balance + amount &gt; 150){
        balance = balance +(balance + amount - 150);}
    else{balance += amount;

    }
</code></pre>

<p>Main </p>

<pre><code>    ACard card = new ACard(10);
    System.out.println(card);

    card.loadMoney(15);
    System.out.println(card);

    card.loadMoney(10);
    System.out.println(card);

    card.loadMoney(200);
    System.out.println(card);
</code></pre>

<p>Outputs </p>

<pre><code>ACard{balance=10}
ACard{balance=25}
ACard{balance=35}
ACard{balance=120} //this blance should be 150
</code></pre>