title: How to override toString() of final class in java
body: <p>While profiling my java program through YourKit, yourkit reported me where the problem is;</p>
  
  <p><img src="https://i.stack.imgur.com/u9Uxd.jpg" alt="enter image description here"></p>
  
  <p>Although my program is small and I can find out the place where problem is but I want to override toString() of Integer. So that yourkit can print it.</p>
  
  <p>how can I do this?</p>
  
  <p>*I have some ways to do it. Like if I on allocation monitor of yourkit profiler, or i just call toString() when i initialize an object. So I can match it with yourkit report. But I am looking for some good solution.</p>