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 12 of 12

Thread: Any ideas for begginer?

  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Lightbulb Any ideas for begginer?

    Im 16 and kinda new to java but i really want to challenge myself. Does anyone have any good ideas for a game i could write or something like that.

    All ideas will help!


  2. #2
    Member
    Join Date
    Oct 2009
    Posts
    52
    Thanks
    0
    Thanked 6 Times in 5 Posts

    Default Re: Any ideas for begginer?

    There stereotypical first game to write is a number guessing game where the computer randomly selects a number, and the user guesses which number it is. Also, have it so the computer says "higher" or "lower" based whether your guess is too low or too high respectively.

  3. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Any ideas for begginer?

    how hard would that be?

  4. #4
    Member
    Join Date
    Oct 2009
    Posts
    52
    Thanks
    0
    Thanked 6 Times in 5 Posts

    Default Re: Any ideas for begginer?

    This is one of the first programs I was assigned when took my first programming course. All you need to know to write this program is how to use variables, if statements, and loops.

    Why don't you try it out? I (or anybody else here) can help you if you get stuck! The guessing game program is usually the first program I write when learning a new programming language. (After HelloWorld of course!)

  5. #5
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Any ideas for begginer?

    LOL!!! I had to do HelloWorld too. It sounds pretty good to try out. What do i need to import? And should i use BufferedReader or JOptionPanes

  6. #6
    Member
    Join Date
    Oct 2009
    Posts
    52
    Thanks
    0
    Thanked 6 Times in 5 Posts

    Default Re: Any ideas for begginer?

    HelloWorld is very common first program ;-)

    I would keep it simple and use a BufferedReader. Otherwise, you shouldn't need to import anything else. Good luck!

  7. The Following User Says Thank You to literallyjer For This Useful Post:

    SwEeTAcTioN (October 25th, 2009)

  8. #7
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Any ideas for begginer?

    Thanks man Ill post if i have problems

  9. #8
    Junior Member
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default Re: Any ideas for begginer?

    What import is the math class?

  10. #9
    Member
    Join Date
    Oct 2009
    Posts
    52
    Thanks
    0
    Thanked 6 Times in 5 Posts

    Default Re: Any ideas for begginer?

    Oop. I forgot about that. I would use java.util.Random for a random number. Then you can call the nextInt() method instead of dealing with Math.random() returning a double.

  11. #10
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: Any ideas for begginer?

    The math class is "standard" (no import). If you want a real challenge, look at Project Euler. It's focused on computer algorithms to perform a mathematical task. The math involved is usually very simple but takes an inordinate amount of time to do by hand, and in many cases also by the computer if you use a bad algorithm (ex: add up the number of letters used to spell out all the numbers from 1 to 1000). Unfortunately, this website doesn't get you too much practice with Java, but rather with general computer science and math.

    Another good website is Top Coder.com. Again, this is similar to Project Euler, and it is almost entirely focused on algorithms rather than Java.

    In my opinion, I think these two websites are much more helpful than actually programming out a massive project (learning wise) because you learn how to solve problems, and we can help you learn the essentials (or you already know them) of how to make the Java compiler happy and do what you want it to do.

    Last note: Both websites present extremely difficult problems! While Top Coder.com may have simple solutions to the problems, the answers that score the most points are almost always due to some ingenious implementation of a specific algorithm (I actually haven't scored the top points on any of the problems yet...). Project Euler is more of a website to see if you can get an answer, but I like to try to see if I can make my code as efficient as possible for their problems as well
    Last edited by helloworld922; October 25th, 2009 at 05:56 PM.

  12. The Following User Says Thank You to helloworld922 For This Useful Post:

    chronoz13 (October 25th, 2009)

  13. #11
    Java kindergarten chronoz13's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    659
    Thanks
    177
    Thanked 30 Times in 28 Posts

    Default Re: Any ideas for begginer?

    Unfortunately, this website doesn't get you too much practice with Java, but rather with general computer science and math.
    but its still part of the basics.... like that one..
    Last edited by helloworld922; October 26th, 2009 at 12:58 AM.

  14. #12
    Member
    Join Date
    Jul 2009
    Posts
    31
    Thanks
    3
    Thanked 6 Times in 5 Posts

    Default Re: Any ideas for begginer?

    as mentioned project euler goes into the math and such, which isn't a bad thing but I think its more for people looking to improve their skill rather than learn basic syntax...for example lots of problems like to deal with the calculation of primes, of course doing these problems can only make you better ;]

Similar Threads

  1. Small Project Ideas
    By Freaky Chris in forum Project Collaboration
    Replies: 20
    Last Post: August 12th, 2009, 12:49 PM