View the step-by-step solution to:

Question

Hi,

I have an exercise with Proton card system (to charge money).

Public void

chargeProtonCard(int toChargeAmount)

if (toChargeAmount > Depositaccount.getAccountSaldo())

...

Can the part before the get be explained?... the insight of the if formule itself, what it does I understand.

Its more where to get the elements including the if. For this I would appreciate some clear insight.

Thank you.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Java Programming tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors