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

Thread: Need help with a Java beginner assignment!

  1. #1
    Junior Member
    Join Date
    Sep 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with a Java beginner assignment!

    V
    Last edited by Ephyra; September 16th, 2020 at 03:34 PM.

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

    Default Re: Need help with a Java beginner assignment!

    Everytime I tried something, the robot walks out of the screen.
    How are you trying to debug the code so you can see what it is doing and correct it?
    Can you post code that compiles and executes and shows the problem?

    Please edit your post and wrap your code with code tags:

    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help with a Java beginner assignment!

    Hi! Thank you for your reply
    I hope I understood your request. Did this make the problem more clear?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help with a Java beginner assignment!

    Something happened to the code's formatting. It has lots its indentations. Can you post code with proper indentations?

    Also make sure that ALL the code is posted so it can be copied for compiling and execution for testing.

    Can you post the program's output that shows the problem?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Sep 2020
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Need help with a Java beginner assignment!

    My apologies, I fixed the indentations and posted the whole code.

    How exactly do I post a program's output on this forum?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Need help with a Java beginner assignment!

    How exactly do I post a program's output on this forum?
    Copy the text onto the clipboard and paste it here.

    When I copied and tried to compile the posted code I get over 30 errors. Here are the first few:
     
    Mondriaan.java:7: error: package nl.ru.ai.karel does not exist
    import static nl.ru.ai.karel.Karel.*;      //????  Where is this package???
                                ^
    Mondriaan.java:13: error: cannot find symbol
        speed(100);
        ^
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] Beginner Java Course, Stuck on my First Assignment. Help Needed.
    By jlcarrillo in forum Object Oriented Programming
    Replies: 5
    Last Post: February 18th, 2018, 07:37 PM
  2. Beginner Java Assignment..Help!
    By nessabenz in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 12th, 2014, 07:47 PM
  3. Beginner,first java program assignment
    By geezlouise in forum What's Wrong With My Code?
    Replies: 7
    Last Post: January 31st, 2013, 08:36 PM
  4. Help with a beginner's java assignment: Survey results
    By lavloki in forum Java Theory & Questions
    Replies: 17
    Last Post: October 14th, 2010, 09:08 AM
  5. Beginner needs help with simple java assignment.
    By joachim89 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: January 6th, 2010, 07:53 PM

Tags for this Thread