Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何在 Java 中将字符串转换为 int?
拜托,我正在开发一个 android 应用程序(Java、XML)。如何从文本字段中获取文本并将其转换为整数?
number = Integer.parseInt(yourStringHere);