Convert String to value


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Convert String to value

  1. #1
    fasad Guest

    Convert String to value


    How to convert a string number "125412" to value ( int 123412)
    is there a search engine for java API?

  2. #2
    p Guest

    Re: Convert String to value


    Whats your question man? If you do not know type casting why are you a programmer?

    "fasad" <fasad1@hotmail.com> wrote:
    >
    >How to convert a string number "125412" to value ( int 123412)
    >is there a search engine for java API?



  3. #3
    Paul Clapham Guest

    Re: Convert String to value

    Actually, type casting from String to integer is NOT a valid Java operation.
    Try

    String s = "125412";
    int i = Integer.parseInt(s);

    Is there a search engine for the Java API? If you downloaded the Java
    documentation to your system, you could do a text search on it. Use the
    "Find Files" function of Windows Explorer or the Unix commands for text
    searching.

    PC2

    p <mymail@mymail.com> wrote in message news:3a0c0cae$1@news.devx.com...
    >
    > Whats your question man? If you do not know type casting why are you a

    programmer?
    >
    > "fasad" <fasad1@hotmail.com> wrote:
    > >
    > >How to convert a string number "125412" to value ( int 123412)
    > >is there a search engine for java API?

    >




  4. #4
    CyberCluck Guest

    Re: Convert String to value


    "fasad" <fasad1@hotmail.com> wrote:
    >
    >How to convert a string number "125412" to value ( int 123412)
    >is there a search engine for java API?


    int i = Integer.parseInt("125412");

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center