DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  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");

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links