skip to main | skip to sidebar

DK-diary

Wednesday, June 4, 2008

Java language from command line

java -Duser.language=de -jar xxx.jar
Posted by DK at 4:51 AM 0 comments
Labels: "ccommand line", I18, java, language

Java string to int


You can convert a String to integer using parseInt() method of Integer wrapper class or using valueOf() and intValue() methods together as follows.

String str = "10";
int i = Integer.valueOf(str).intValue();
or
int i = Integer.parseInt(str); // possible exception here
Posted by DK at 4:34 AM 0 comments
Labels: convert, int, integer, java, string
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2009 (2)
    • ►  March (2)
      • Solution for ORA-01092, ORA-00704, ORA-39700
      • Solution for ORA-01092, ORA-00704, ORA-39700
  • ▼  2008 (9)
    • ▼  June (2)
      • Java language from command line
      • Java string to int
    • ►  April (2)
      • google-earth has caught signal 11
      • Skype on XP disable autostart
    • ►  March (1)
      • Java plugin for Firefox x86_64
    • ►  February (3)
      • Firefox enable mms
      • Wine date format in Lotus Notes
      • VNC and AltGr
    • ►  January (1)
      • Skype on openSuSE 10.3 x86_64
  • ►  2007 (7)
    • ►  December (2)
      • openSuse 10.3 USB automount
      • VMWare Converter error
    • ►  November (2)
      • ora_rowscn and oracle 11.1.0.6.0/Linux
      • Lotus Notes: port forwarding
    • ►  October (2)
      • Disk layout with seagate 120GB origin
      • OpenSuse 10.3 RC1 and bcm43xx
    • ►  September (1)
      • Oracle 11g installation on OpenSuse 10.3 RC1xlib.l...

About Me

DK
View my complete profile