<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to convert String '1,700' to int 1700 by java? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695821#M496673</link>
    <description>System.out.println(Integer.parseInt("1,700", 10));&lt;BR /&gt;&lt;BR /&gt;Using 1000 separator, I will get the following error:&lt;BR /&gt;Exception in thread "main" java.lang.NumberFormatException: For input string: "1,700"&lt;BR /&gt;        at java.lang.NumberFormatException.forInputString(Unknown Source)&lt;BR /&gt;        at java.lang.Integer.parseInt(Unknown Source)&lt;BR /&gt;        at bbb.main(bbb.java:15)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Dec 2005 06:47:33 GMT</pubDate>
    <dc:creator>MA Qiang</dc:creator>
    <dc:date>2005-12-21T06:47:33Z</dc:date>
    <item>
      <title>How to convert String '1,700' to int 1700 by java?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695821#M496673</link>
      <description>System.out.println(Integer.parseInt("1,700", 10));&lt;BR /&gt;&lt;BR /&gt;Using 1000 separator, I will get the following error:&lt;BR /&gt;Exception in thread "main" java.lang.NumberFormatException: For input string: "1,700"&lt;BR /&gt;        at java.lang.NumberFormatException.forInputString(Unknown Source)&lt;BR /&gt;        at java.lang.Integer.parseInt(Unknown Source)&lt;BR /&gt;        at bbb.main(bbb.java:15)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Dec 2005 06:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695821#M496673</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-12-21T06:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String '1,700' to int 1700 by java?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695822#M496674</link>
      <description>&lt;A href="http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20465785.html" target="_blank"&gt;http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20465785.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Muthu</description>
      <pubDate>Wed, 21 Dec 2005 07:05:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695822#M496674</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-12-21T07:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String '1,700' to int 1700 by java?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695823#M496675</link>
      <description>Thank sakulagi.&lt;BR /&gt;&lt;BR /&gt;NumberFormat nf = NumberFormat.getNumberInstance();&lt;BR /&gt;Number n = null;&lt;BR /&gt;try {&lt;BR /&gt;      n = nf.parse("1,700");&lt;BR /&gt;    } catch (ParseException e) {&lt;BR /&gt;      e.printStackTrace();&lt;BR /&gt;    }&lt;BR /&gt;   int i = n.intValue();&lt;BR /&gt;   System.out.println("i = " + i);</description>
      <pubDate>Wed, 21 Dec 2005 07:47:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695823#M496675</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-12-21T07:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String '1,700' to int 1700 by java?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695824#M496676</link>
      <description>Thank sakulagi in bbs.chinaunix.net. I got the answer from him, but it is very complex.&lt;BR /&gt;&lt;BR /&gt;NumberFormat nf = NumberFormat.getNumberInstance();&lt;BR /&gt;Number n = null;&lt;BR /&gt;try {&lt;BR /&gt;      n = nf.parse("1,700");&lt;BR /&gt;    } catch (ParseException e) {&lt;BR /&gt;      e.printStackTrace();&lt;BR /&gt;    }&lt;BR /&gt;   int i = n.intValue();&lt;BR /&gt;   System.out.println("i = " + i);</description>
      <pubDate>Wed, 21 Dec 2005 07:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/3695824#M496676</guid>
      <dc:creator>MA Qiang</dc:creator>
      <dc:date>2005-12-21T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert String '1,700' to int 1700 by java?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/6530208#M496677</link>
      <description>&lt;P&gt;you can use number formater for this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Jul 2014 11:24:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-convert-string-1-700-to-int-1700-by-java/m-p/6530208#M496677</guid>
      <dc:creator>meetlesli</dc:creator>
      <dc:date>2014-07-06T11:24:45Z</dc:date>
    </item>
  </channel>
</rss>

