---
title: "String和Int之间的相互转化"
author: "freesky1002"
date: "2007-11-23T10:39:23Z"
tags: []
slug: "string-int"
draft: false
lastmod: "2007-11-23T10:39:23Z"
id: 142960
url: "https://freesky1002.iteye.com/blog/142960"
---

#### String和Int之间的相互转化： a1=Integer.parseInt(s1); s1=Integer.toString(a1); Object只能分步转换，先转换为string，然后通过Integer来转换成int类型