Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Saving number into integer in java program!

  1. #1
    Junior Member
    Join Date
    Nov 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Saving number into integer in java program!

    [code=Java]

    Hello everyone!

    I'm new on this forum, and I already have a questions for veterans!

    How can I save number that I type on my own in JAVA program, and then save it as integer, like if I type 5 then that 5 will be stored in int = x;

    Is this even possible to do without any fancy code, i'm just learning the language, I just know how to store int,string, array int, if, else just the basics basically!

    [/java]


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,164
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Saving number into integer in java program!

    If your just beginning, you should take a long look at the tutorial.
    The Really Big Index

    That is a master list of lots of topics.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    BioHazard (November 10th, 2013)

  4. #3
    Junior Member
    Join Date
    Nov 2013
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Saving number into integer in java program!

    Wow, there is so much information there, it will take like few weak's to read all of that, not mentioning that I have to understand all of that. Will read all of that, seems really awesome, thanks!

    I really like the concept of Jframe and 2D graphics, but it's like one of the lasts topics, can't wait for that....

Similar Threads

  1. integer number too large - don't understand
    By ProfAlex in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 24th, 2013, 07:16 AM
  2. Java program inputting month name and outputting month number and number of days
    By Brovahkiin501 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: September 19th, 2012, 09:30 AM
  3. Replies: 2
    Last Post: November 30th, 2011, 07:35 PM
  4. check if a number is an integer
    By rsala004 in forum Java Theory & Questions
    Replies: 3
    Last Post: August 15th, 2009, 03:51 PM
  5. Replies: 4
    Last Post: June 10th, 2009, 01:04 AM

Tags for this Thread