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

Thread: Need Help Practicing

  1. #1
    Junior Member lil_misfitss's Avatar
    Join Date
    Aug 2013
    Location
    USA!!!!!
    Posts
    24
    My Mood
    Confused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Need Help Practicing

    I'm trying to teach myself more advanced programming so that I could soon make a game. The things I am trying to learn are:
    Threads
    Drawing Shapes and Putting Images on a Screen
    Using Event Listeners
    More about Objects
    Edit: and Swing!
    The reason I'm having trouble learning these things is that i'm used to a teacher teaching me and having "assignments" using the skills we just learned. So what i'm asking for is some assignments that have you make a simple (or complex) program using the skill you just learned. I would give an example if I still had the assignments from my 3 week college but I've lost them. If some one could show me a website with what i'm looking for or possibly give me some assignments that would be nice.


    If you have questions, ask and I'll answer!

    Lil_misfit
    Last edited by lil_misfitss; June 7th, 2014 at 01:08 PM.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Need Help Practicing

    Did your class have a textbook? If so, go to the chapter on Threads, Multithreading, or Concurrency and completely work through the entire chapter.

    If no textbook, then searching for "java multithreading tutorial" should give you many possibilities to work through.

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

    lil_misfitss (June 7th, 2014)

  4. #3
    Junior Member lil_misfitss's Avatar
    Join Date
    Aug 2013
    Location
    USA!!!!!
    Posts
    24
    My Mood
    Confused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: Need Help Practicing

    Yes we did have a text book and I have the Java All in one for dummies (Java 7) and the text book has a few exercises but not many. The dummies book has 0 exercises. I'll try searching for that! Thank you.

  5. #4
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: Need Help Practicing

    Here's a exercise from the "multithreading" chapter of a book I have:

    (Bouncing Ball)
    Write a program that bounces a blue ball inside a JPanel. The ball should
    begin moving with a mousePressed event. When the ball hits the edge of the JPanel, it should
    bounce off the edge and continue in the opposite direction. The ball should be updated using a Run

    And a bit of theory:

    (Multithreading Terms)
    Define each of the following terms.
    a) thread
    b) multithreading
    c) runnable state
    d) timed waiting state
    e) preemptive scheduling
    f) Runnable interface
    g) notifyAll method
    h) producer/consumer relationship
    i) quantum

    Hope it helps - if you need more information on the bouncing ball exercise I can send it you via
    a PM if you like

    Wishes Ada xx
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

  6. The Following User Says Thank You to Ada Lovelace For This Useful Post:

    lil_misfitss (June 8th, 2014)

  7. #5
    Junior Member lil_misfitss's Avatar
    Join Date
    Aug 2013
    Location
    USA!!!!!
    Posts
    24
    My Mood
    Confused
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Default Re: Need Help Practicing

    Thank you again! Tomorrow I'll start practicing threading etc.. Thanks to all that have replied and suggested things!

Similar Threads

  1. Practicing reading from file.
    By jjk in forum What's Wrong With My Code?
    Replies: 8
    Last Post: January 1st, 2013, 05:05 PM
  2. Replies: 8
    Last Post: August 9th, 2011, 08:25 PM