File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Head First java OO Movietester Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Head First java OO Movietester " Watch "Head First java OO Movietester " New topic
Author

Head First java OO Movietester

kieran haberstock
Greenhorn

Joined: Sep 15, 2012
Posts: 1
Hi I am trying to figure how to get my code to run for the The movietestdrive in Head First java, but i the book isn't telling me enough. It would help a lot thank you. If it helps i have the code in two different classes.





Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
You say you're trying to get your code to run, but it appears to me that it should run fine. What problems are you having with it? Are you getting errors? If so, post them, copied and pasted just as they appear at your end. If no errors, then describe how what is occurring does not meet your (or the book's) expectations.


Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
… and welcome to the Ranch
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7032
    
  16

kieran haberstock wrote:but i the book isn't telling me enough...

I think they also missed a few opportunities with their film titles. A few suggestions for the authors:
"List in Space"
"Caddymap"
"Hash Bridges"
"Forrest Dump"
"Das Bit"
"Iterator"
"The Big Heap"

Hey...it's Sunday.

Winston

Isn't it funny how there's always time and money enough to do it WRONG?
Artlicles by Winston can be found here
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Winston Gutkowski wrote: . . . Hey...it's Sunday.

Winston
It’s probably still Saturday in Fiji. Surely the first one, now we are past Java1.4.2, is “List<T> in Space”

Execute it like this, assuming you have got your .java files already written in your “'java” directory, and they do not have package names:-And you will get no output from the code you showed. You will need to add to the methods given. Change the playIt method to read like thisThe \u201c and \u201d bits give you posh quote marks.
Change the main method by adding this sort of thing just before the first closing brace }
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7032
    
  16

Campbell Ritchie wrote:It’s probably still Saturday in Fiji. Surely the first one, now we are past Java1.4.2, is “List<T> in Space”

Dang! Damn generics. Gets me every time...

Winston
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Head First java OO Movietester
 
Similar Threads
MovieTestDrive
Reading Head First Java - confused
Exception in thread "main" java.lang.NoSuchMethodError: main
Beginner needs help with objects
Java OO - First time help!