Results 1 to 3 of 3
  1. #1
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default define a variable

    how can i declare a variable with a number of 12 digits in java :confused:

    like int x = 123456789123;

    i need help!!!!

  2. #2
    Lil_Aziz1's Avatar
    Lil_Aziz1 is offline Senior Member
    Join Date
    Dec 2009
    Location
    United States
    Posts
    343
    Rep Power
    5

    Default

    Java Code:
    double x = 123456789123;
    "Experience is what you get when you don't get what you want" (Dan Stanford)
    "Rise and rise again until lambs become lions" (Robin Hood)

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Define this error.
    By jaicea in forum New To Java
    Replies: 3
    Last Post: 12-02-2009, 02:07 AM
  2. How to define boolean in the fields ?
    By racewithferrari in forum New To Java
    Replies: 3
    Last Post: 11-26-2009, 07:01 PM
  3. Replies: 3
    Last Post: 11-17-2008, 04:49 PM
  4. What is an interface in the java? how to define
    By sivasayanth in forum New To Java
    Replies: 3
    Last Post: 01-14-2008, 05:13 AM
  5. Help with define an integer field
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 08:32 AM

Posting Permissions

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