+ 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
2 Respuestas
+ 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.