May someone help me please with a practice code problem on inner classes please? Please read my code to understand it properly. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

May someone help me please with a practice code problem on inner classes please? Please read my code to understand it properly.

I understand inner classes, my problem is I'm writing a practice problem. I want Java to output, ( blank num pair of jeans and belts cost: ) I'm using variables and methods to achieve this. For example, Private int num; Pants( int n) { Int num = n; } https://code.sololearn.com/czDd3AFaUtMe/?ref=app

18th Feb 2018, 7:25 PM
Jaren Dogan
Jaren Dogan - avatar
1 ответ
+ 2
I would suggest you better format your code and look at it again. Your Pants class has a constructor inside a constructor and its variable doesn't match up (n m) etc.
18th Feb 2018, 9:04 PM
ChaoticDawg
ChaoticDawg - avatar