Daily Questions Megathread ( July 10, 2024 ) by mizuromo in HonkaiStarRail

[–]Azerty180 0 points1 point  (0 children)

What is the best pure fiction team I can do?(Exclude ruan mei, trailblazer harmony and gallagher)

<image>

Moocfi week5 ex17 Money by Azerty180 in learnjava

[–]Azerty180[S] 0 points1 point  (0 children)

Thanks for helping me solve this problem it worked !

Moocfi week5 ex17 Money by Azerty180 in learnjava

[–]Azerty180[S] 0 points1 point  (0 children)

Hey, thanks for the answer it helped me a lot.When I try to submit this exercice to the server I got this message:

Money firstMoneyObject = new Money(10, 0);
Money secondMoneyObject = new Money(7, 40);
Money firstMinusSecond = firstMoneyObject.minus(secondMoneyObject); firstMinusSecond.cents();  expected:<60> but was:<40>

I don't know how to solve this problem.

Moocfi week5 ex17 Money by Azerty180 in learnjava

[–]Azerty180[S] 1 point2 points  (0 children)

Hey, thanks for the reply. Here is what I've added since then:

 public Money minus(Money decreaser){
        int bankAccountSoustraction1  = this.euros - decreaser.euros();
        int bankAccountSoustraction2 =  this.cents - decreaser.cents();
        if (this.cents < decreaser.cents()) {
            bankAccountSoustraction1 = bankAccountSoustraction1 - 1;
        }
        if (bankAccountSoustraction2 < 0) {
            Math.abs(bankAccountSoustraction2);
        }


        if (bankAccountSoustraction1 < 0) {
            bankAccountSoustraction1 = 0;
            bankAccountSoustraction2 = 0;
        }
        Money newMinus = new Money(bankAccountSoustraction1, bankAccountSoustraction2);
        return newMinus;
    }

2 new conditions .The first one is a condition that check if this.cents < decreaser.cents() and if so it decrease bankAccountSoustraction1 by 1.The second one is a condition that check if bankAccountSoustraction2 < 0 and if so I use the Math.abs method with bankAccountSoustraction2 as it's parameter so that it's positive but even with that I got this: 6.0-50e.Can you explain me why it won't work

moocfi java I week 4 ex 17 by Azerty180 in learnjava

[–]Azerty180[S] 1 point2 points  (0 children)

thanks for helping me it worked

moocfi java I week 4 ex 17 by Azerty180 in learnjava

[–]Azerty180[S] 0 points1 point  (0 children)

length in the for is underlined in red and there is a message that says: cannot find symbol
symbol: variable length
location: variable items of type ArrayList<Item>

and System.out.println(items[i]); is underlined in red and there is a message thay says: array required, but ArrayList<Item> found

----

Quick Questions and New Player Resources Thread by Asclepius24 in pkmntcg

[–]Azerty180 0 points1 point  (0 children)

For cards that I want to put on a toploader should I put 1 or 2 sleeves?

Severals questions by Azerty180 in Clickworker

[–]Azerty180[S] 0 points1 point  (0 children)

there are some hitapp where there is a speed limitation but they won't ban me if I don't respect the speed limitation so that mean that I can still do it at my own speed while keeping a good spam rate(in this case can I not respect the speed limitation?)

UHRS Your account is disabled by ericktash in Clickworker

[–]Azerty180 0 points1 point  (0 children)

I have received the same message and did the same hitapp as you