-When I use toString to print: System.out.println(animal);
- I get this : Animal{name='Shark', weight=30, speed=40}
- What I want is : Animal {name = 'Shark', weight = 30, speed = 40}.
- How I can force I-IDEA make what I want automatically?
-When I use toString to print: System.out.println(animal);
You can generate toString() method and edit that