8

Why someone would do that?

int resQ = Integer.parseInt(String.valueOf(res));
//res is int

Comments
  • 3
    Is it always an int though? from the ame res, could it be short for response? perhaps from an API? maybe the developer doesn't control the API and had problems with it before, so is just making sure...
  • 2
    @afduarte well, if a variable declared as int, it's int, innit?
  • 0
    @Username do you see res being declared there?
  • 0
    @afduarte But there is a comment. :-/
Add Comment