> 原文:[https://www . geesforgeks . org/如何在 java 中将字符串转换为 int/](https://www.geeksforgeeks.org/how-to-convert-a-string-to-an-int-in-java ...
Read a string, , and print its integer value; if cannot be converted to an integer, print Bad String. Note: You must use the String-to-Integer and exception handling constructs built into your ...