Results 1 to 2 of 2

Thread: Drjava and turtle

  1. #1
    Join Date
    Feb 2011
    Posts
    1

    Drjava and turtle

    So i'm having some trouble with an assignment with dr java. i need to make several methods for drawing shapes in turtle such as

    public void drawSquare()
    {
    int width = 30;
    this.turnRight();
    this.forward(width);
    this.turnRight();
    this.forward(width);
    this.turnRight();
    this.forward(width);
    this.turnRight();
    this.forward(width);
    }


    but when i do this i get:

    Error: Syntax error on token "void", @ expected

    Error: Syntax error, insert "interface Identifier" to complete InterfaceHeader

    Error: Syntax error on token ";", < expected

    I'd be so grateful to anyone who can help.

    Thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    569

    Re: Drjava and turtle

    I think that you may not have declared the classes properly and that is the reason that you are getting the problem like this. This error normally comes when there is missing class or improper declaration of class. So you should check for that first. I hope that you will be able to resolve that easily. Thank you.

Similar Threads

  1. Turtle Beach PX5 headset does not work with journey game
    By Daler Mehndi in forum Video Games
    Replies: 1
    Last Post: 20-03-2012, 05:29 PM
  2. Replies: 5
    Last Post: 16-12-2011, 09:11 AM
  3. Turtle Beach Ear Force PX21 Gaming headset
    By Charites in forum Hardware Peripherals
    Replies: 5
    Last Post: 21-04-2010, 02:36 AM
  4. Turtle Beach Riviera Audio card upgrade
    By Croulet in forum Hardware Peripherals
    Replies: 3
    Last Post: 22-08-2009, 01:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,303,908.18068 seconds with 17 queries