---
title: "String转为int"
author: "colddemon"
date: "2012-07-26T16:12:11Z"
tags: []
categories: ["编程语言"]
slug: "string-int"
draft: false
lastmod: "2012-07-26T16:12:11Z"
id: 1608040
url: "https://colddemon.iteye.com/blog/1608040"
---

String str="2";
int a=Interger.parseInt(str); 


Long.parseLong(str);