Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2006

    Change String to int and back

    Hi all,

    I am writing a app using midlets and I know this is a simple question but can someone please tell me how to convert a String to int and then back to String again.. I have done this a long time ago and for some reason I can't seem to find it anywhere..

    Thanks for your time and affort!!

  2. #2
    Registered User
    Join Date
    Dec 2005

    Re: Change String to int and back

    Gee, check the Javadocs...

    Integer.parseInt(s) - public static int parseInt(String s)

    String.valueOf(i) - public static String valueOf(int i)


    Juarez Junior

Similar Threads

  1. AddNewDocumentL(...) alters WindowGroup's AppUid, cannot get it back
    By Marat Khalili in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-09-30, 02:58
  2. Different languages
    By shahzad73 in forum Mobile Java General
    Replies: 5
    Last Post: 2005-08-05, 07:31
  3. Translating graphics
    By Christian V Petersen in forum Mobile Java General
    Replies: 4
    Last Post: 2005-06-09, 03:00
  4. image pixel operation possible?
    By huiben in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2003-08-29, 21:32
  5. Using ResourceBundle
    By asil810 in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-05, 13:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts