Results 1 to 2 of 2
  1. #1
    mansooraltaf is offline Member
    Join Date
    Feb 2012
    Posts
    1
    Rep Power
    0

    Default plz solve the problem

    hi.

    i want to convert

    char a='1';

    int to int. type.

    e.g int x=a;......

    like e.g i could assing a to int. in java.

    i dont want to use any builtin java function.

    regards

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,574
    Blog Entries
    7
    Rep Power
    21

    Default Re: plz solve the problem

    Read the API documentation for the Character class; it has a method that can do the job.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Solve JVM Problem
    By pedroffbarbosa in forum Advanced Java
    Replies: 8
    Last Post: 11-28-2011, 11:35 PM
  2. Problem that I can't solve...
    By Wing.Sham in forum New To Java
    Replies: 9
    Last Post: 11-16-2011, 01:31 AM
  3. Could someone help me to solve this problem...
    By Vinny in forum Java Software
    Replies: 1
    Last Post: 07-08-2009, 06:59 PM
  4. Solve my Problem
    By kyo in forum New To Java
    Replies: 1
    Last Post: 12-16-2008, 02:22 PM
  5. Help me to solve problem
    By mansoorhacker in forum New To Java
    Replies: 3
    Last Post: 11-13-2008, 08:15 AM

Tags for this Thread

Posting Permissions

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