0
How can i put one argument in my system.out.println in my code?
To put one argument like this. https://code.sololearn.com/ccIKV8kLj25H/?ref=app
2 ответов
+ 1
You need to override your objects toString() method so it outputs the information from that object you wish to see.
https://www.tutorialspoint.com/override-the-tostring-method-in-a-java-class
https://devqa.io/overriding-tostring-java-class/
https://www.google.com/amp/s/www.geeksforgeeks.org/overriding-tostring-method-in-java/amp/
+ 1
Also, in your StockmanMalick classes Work() method change nom to stockmanMalicknom to avoid error.