For years, I found myself second-guessing which method to use when converting between primitives, wrapper classes, and strings in Java. Do I use valueOf() here? What about parseInt()? When should I use toString()?
If that confusion sounds familiar, h...