I am trying to test a piece of code which converts a string to an integer through autoboxing.
But this doesn't
From what I read and understood, is the second method can now be written, even though the compiler will interpret it as the first example I gave. However, when I compile the second example, I get an Incompatible Types error. It says Found java.lang.String, but Required java.lang.Integer.
Would I just be better off doing a..... Integer value = Integer.parseInt(args); instead?