• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Head First java OO Movietester

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.





 
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 76884
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
… and welcome to the Ranch
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Campbell Ritchie
Marshal
Posts: 76884
366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
For my next trick, I'll need the help of a tiny ad ...
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic