Hi, I am trying to add string format to this so I receivetwo decimal places. Please fix.
Error is:
If more code is needed please let me know but I just need stringformat added to calcpay
public String toString() { return super.toString() + " - pay forthis period is $" + calcPay(); }
Hi, I am trying to add string format to this so I receive two decimal places. Please fix. Error is: If more code is need
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am