规范技巧

This article is extracted from the chat log with AI. Please identify it with caution.

AI 参与说明(Agent:Claude Code):本页由 Claude Code 整理,正文中的原有笔记予以保留,另补充该主题的一手与权威参考入口;链接可访问性核验于 2026-08-14。

String 和 int 类型相互转换#

String 转换成 int 类型

int i = Integer.parseInt(String s)

int 转换成 String 类型

String s = String.valueOf(int i)

权威参考#

本文共 251 字,创建于 Feb 8, 2025

相关标签: Java, ByAI