Vasyl Lyashkevych

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

Recent posts by Vasyl Lyashkevych

I think when you correct all the code, you will see exactly your problem places and we can help you
5 years ago
You have more mistakes into the code, for example this:

   

You described that method will return int, but, actually, you try to return Money. So, you need to decide what do you want.
Case 1. Return int.

   

Case 2. Return Money.

   
5 years ago
You have two classes with the same name . How did you do this?
5 years ago
@Sheriff. Thanks, It was useful for me too!
5 years ago
Yes, it is true, because you wrote:



You need to replace these two methods to single:
   

At all!

5 years ago
My results look like:
5 years ago
When you return something, that something will be written like:

5 years ago
Because you return "null" like here:



why did you return null? In this case, you don't need this method.

5 years ago
You don't write like:


but like:

       
Because in the method :


you need to write how do you present you object into the string for output
5 years ago
You created a rectangle but didn't use it:
5 years ago
You can define the data into constructors like:

 
5 years ago
When you in constructor define the data, later your method toString() can look like:


When you will print your objects like:


The results can look like:
5 years ago
For example, you can write apps:
1. Gift recommendation
2. The best price into the shops
3. The closer restaurant
4. The closer park
5. Simple Notebook with reminder
6. Any checker
5 years ago