answersLogoWhite

0

Parsing is very important since the input from the user is not in the form of ints but in a String, therefore, you have to parse the String containing the number into a primitive data type.

i.e.

String num = "49";

int realNum = Integer.parseInt(num); // puts 49 into realNum;

User Avatar

Wiki User

17y ago

What else can I help you with?