...

/

Challenge: Convert a String Into an Integer

Challenge: Convert a String Into an Integer

Apply what you’ve learned about strings in the coding exercises in this lesson.

Problem statement

In this challenge, you have to implement the stringToInt function.

int stringToInt(String str);

You are given the string, str ...