Java noob error

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

36 Replies - 5261 Views - Last Post: 05 July 2011 - 07:59 PM Rate Topic: -----

#1 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Java noob error

Posted 05 July 2011 - 10:02 AM

I just started java and i am watching Stanford videos about programming.i want to do the assignments but i get errors when i am trying to run it.Posted Image

Uploaded with ImageShack.us

This is the assignment!

How do i fix it? sorry for the dumb question?

Is This A Good Question/Topic? 0
  • +

Replies To: Java noob error

#2 paradoxia  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 163
  • Joined: 02-July 11

Re: Java noob error

Posted 05 July 2011 - 10:04 AM

can we see the codes please?
Was This Post Helpful? 0
  • +
  • -

#3 Kilorn  Icon User is offline

  • XNArchitect
  • member icon



Reputation: 1356
  • View blog
  • Posts: 3,528
  • Joined: 03-May 10

Re: Java noob error

Posted 05 July 2011 - 10:04 AM

Show us the code that you have written and it should be pretty easy to figure out. :code:
Was This Post Helpful? 0
  • +
  • -

#4 Mila  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 34
  • View blog
  • Posts: 193
  • Joined: 28-October 06

Re: Java noob error

Posted 05 July 2011 - 10:05 AM

Can you provide your code in a post? I'm not comfortable downloading random files from foreign file sharing servers. :)
Was This Post Helpful? 0
  • +
  • -

#5 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 10:07 AM

I uploaded the assignment from stanford .there are a lot of classes and stuff and i do not know how to post it.(just started)
Was This Post Helpful? 0
  • +
  • -

#6 Mila  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 34
  • View blog
  • Posts: 193
  • Joined: 28-October 06

Re: Java noob error

Posted 05 July 2011 - 10:16 AM

View PostBender662, on 05 July 2011 - 11:07 AM, said:

I uploaded the assignment from stanford .there are a lot of classes and stuff and i do not know how to post it.(just started)


Copy-paste the code you tried to run into a post. Put [ code ] tags around it first. :)
Was This Post Helpful? 0
  • +
  • -

#7 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 10:35 AM

i was trying to run a basic move method
import stanford.karel.*;

public class CheckerboardKarel extends SuperKarel {

	public void run(){
		move();
	}

}


Was This Post Helpful? 0
  • +
  • -

#8 jon.kiparsky  Icon User is offline

  • Pancakes!
  • member icon


Reputation: 7744
  • View blog
  • Posts: 13,099
  • Joined: 19-March 11

Re: Java noob error

Posted 05 July 2011 - 10:49 AM

This looks like sort of a big program for someone getting started. Maybe you should try making your "noob error" in smaller programs, that you'll find a little easier to debug.
This has multiple levels of inheritance, so we'd really need to trace back up the line until we found your problem - that's potentially a lot of code to read.

Maybe you should try a little hello world, a little fahrenheit to celsius conversion, that sort of thing, to sort of ease your way into a full-fledged Checkers game.

Just a suggestion.

This post has been edited by jon.kiparsky: 05 July 2011 - 10:51 AM

Was This Post Helpful? 0
  • +
  • -

#9 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 10:54 AM

well this was the first Stanford assignment. It's a big program and we have 4 problems to solve,run the assignment to see Assignment
Was This Post Helpful? 0
  • +
  • -

#10 Mila  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 34
  • View blog
  • Posts: 193
  • Joined: 28-October 06

Re: Java noob error

Posted 05 July 2011 - 11:03 AM

Is it this class?
Was This Post Helpful? 0
  • +
  • -

#11 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 11:06 AM

yes ,but i am viewing some 2008 videos.and this is the address Link

This post has been edited by Bender662: 05 July 2011 - 11:12 AM

Was This Post Helpful? 0
  • +
  • -

#12 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2720
  • View blog
  • Posts: 11,440
  • Joined: 20-September 08

Re: Java noob error

Posted 05 July 2011 - 11:59 AM

Post the code for Program.main
Was This Post Helpful? 0
  • +
  • -

#13 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 12:04 PM

i do not have the source ,i posted the full program in my first post.
Was This Post Helpful? 0
  • +
  • -

#14 g00se  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2720
  • View blog
  • Posts: 11,440
  • Joined: 20-September 08

Re: Java noob error

Posted 05 July 2011 - 12:06 PM

View PostBender662, on 05 July 2011 - 08:04 PM, said:

i do not have the source


Then you can't compile it. This question will therefore possibly be closed

This post has been edited by g00se: 05 July 2011 - 12:07 PM

Was This Post Helpful? 0
  • +
  • -

#15 Bender662  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 36
  • Joined: 04-July 11

Re: Java noob error

Posted 05 July 2011 - 12:09 PM

Can u try and run it Program
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3