Yarelly Gomez

Greenhorn
+ Follow
since Jul 13, 2017
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yarelly Gomez

I have read through a number of different questions that have a similar issue but not what I'm struggling with specifically. I have created a total of 4 classes, a Bill class, a Money class and a Date class as well as a driver to test my output. These classes are supposed to be implemented for use in managing a set of outstanding and paid bills. When I attempt to run my main on my driver class I receive a "Incompatible types, money cannot be converted to int" and it points to my getDollars method. I am fairly new to java so my solution may be simple but I don't see what I'm doing wrong. Should I be returning an object?


This is the class that has an error when I run it in my driver.
The other classes are

Date Class

And my driver to test the code

Someone please help I'm so confused on what I'm doing wrong





6 years ago