Skip to main content

One doc tagged with "parsing"

View all tags

Handling User Input: Parsing Strings

In the previous article, we learned how to get input from the user as a String. However, to build useful applications, we often need to convert that string into a different type, like a number. This process is called parsing. In this article, we'll explore how to parse strings into numbers and handle the potential errors that can occur.