+ 2

I need help with this code... Trying to get the area of a rectangle but i dont seem to get it. Need someone to put me tru

https://code.sololearn.com/cywKFscW1aGK/?ref=app

20th Aug 2017, 11:49 AM
Komolafe Oluseyi Ephraim
2 Réponses
+ 7
please delete your phone number from that post, it can be dangerous to post it on any social network
20th Aug 2017, 12:56 PM
Kamil
Kamil - avatar
+ 3
the issue is the method main() is a static method inside of the class your creating an instance of so your best bet (I think, just whimsical guessing here) is that you need to create a Dcoder.class and a main.class. Again, its just what I think the problem is. I've never seen the main method inside of an instantiated class before.
20th Aug 2017, 12:01 PM
Will