• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

stuck on a problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey guys, I have decided to learn Java on my own so I have been watching Stanford cs lectures and trying to do their problem sets.

I'm stuck on problem 3 problem set

I have been following this hand out. You can just look at the last page and see what SuperKarel is capable of.

So far this is all I have:



the code works fine but I got this error http://i49.tinypic.com/np4zsh.png

Any code that I write after the while loop didn't get processed?

 
Ranch Hand
Posts: 123
Firefox Browser Spring Tomcat Server
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What 'error' were you referring to?

The yellow warnings (which in this case is about ~serializable) is just a warning. It didnt have any effect whatsoever in your java compilation nor the execution of your program.

It does look like the codes after the while is executed. That is why you get that '...blocked' red pop up. That is part of that 'game' design.

-k

 
Lee Kerns
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply.

Oh nvm the error.

If the codes after the while are executed, wouldn't the robot's position be at (8,2) instead of (8,1)?
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic