Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Just Java page numbers in Cattle Drive tutorials

 
margaret gillon
Ranch Hand
Posts: 335
6
Linux Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read the tutorials before starting assignments but when I go to the page numbers mentioned in the tutorial they seem incorrect. By any chance are the page numbers from the first edition of the book not the second edition that we are using now (2009) ?

on http://www.javaranch.com/drive/float.html
Look on page 93 of Just Java 1.2 for more info on the use of double and float.
which is the chapter on OOP Part II -- Constructors and Visibility

on http://www.javaranch.com/drive/switch.html
For more information on switch statements, read page 175 of Just Java 1.2.
which is the chapter on More OOP -- Extending classes
 
paul wheaton
Trailboss
Pie
Posts: 21378
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I first wrote this stuff in 1998 ... so more than ten years ago. When I wrote it, I guess I had some heavy expectations on my future self.

DAMN YOU, PAST SELF! I'M NOT YOUR SLAVE!

That said, I haven't even held a copy of that book for many years. So I can't even look up the page numbers. I suppose there is a barnes and noble near by. I could pop over and figure out the page numbers.

But since I am scrambling to slap together a presentation I am giving on saturday, it will have to wait a bit.

That's right - I am dodging the task and volunteering somebody else to do it: my future self! But don't worry, my future self is such a jerk, I don't feel too bad loading him up with work. When he sees this in the calendar, he'll be mad, and I'll just laugh!

Of course, if you all work on this together and come up with the appropriate changes to the HTML and Katrina puts those changes in, then my future self will point at ME and laugh. See what I mean? He's such a jerk!

 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it would make sense to point to the explanations in Bruce Eckel's widely acclaimed "Thinking in Java" instead, the 3rd edition of which is available for free?
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf, that is an excellent idea, and it just went pretty high on my todo list. Thanks

Paul, I think I have it -- not sure which edition/printing, but I'll check that too. No need to scramble over to B&N.
 
paul wheaton
Trailboss
Pie
Posts: 21378
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Katrina,

That's a lovely gift for my future self. I'll be sure to tell him. He probably will forget to thank you, but I'll thank you!

Thanks!

 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
alrighty, then

I've tweaked the references in the following files to the best of my ability using the references from my "Just Java 2 (sixth edition)".

array.html
command.html
concat.html
float.html
if.html
int.html
loop.html
method.html
modulo.html
switch.html
variable.html

Holler if you see something weird or off or wrong!

I'll be adding references to Thinking in Java, too... just not tonight!
Katrina
 
paul wheaton
Trailboss
Pie
Posts: 21378
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is future paul,

Thanks Katrina.

(take that past self)
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome, future - uh - current Paul!
 
margaret gillon
Ranch Hand
Posts: 335
6
Linux Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My thanks to my current nitpicker for helping the future trail boss take care of the unfinished business left by the past trail boss. It will be very helpful to future cattle being driven by nitpickers in the eons to come.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I didn't see this earlier, but
http://www.coderanch.com/t/5023/Cattle-Drive/Just-Java-book-nitpick#31236
may be helpful (or may not at this point).
 
margaret gillon
Ranch Hand
Posts: 335
6
Linux Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More corrections need, I think. On the page for the OOP assignments the top reads:

JavaRanch Cattle Drive - Classes and Objects
Read chapters 2, 3, 6 and the last half of chapter 7 in the book Just Java 1.2.


There are no names for the chapters so I cannot cross reference to the older book. Can the chapter numbers be fixed so I know what the chapters are to be read at this point?

Thanks.
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Margaret,

I'll look into these!

Katrina
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 2: The Store of O: Object-Oriented Programming (Abstraction, Encapsulation, Comparing Primitive Types to Class Types, Constructors, Static, Access Modifiers)
Chapter 3: Explanation of "a Sample Program" (the Class "Object")
Chapter 6: More OOP - Extending Classses (Inheritance, Polymorphism)
Chapter 7: Java Statements (Exceptions)
 
margaret gillon
Ranch Hand
Posts: 335
6
Linux Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the titles. I am listing what I think are the equivalent chapters from Just Java 2, 6th edition.

Chapter 2: The Store of O: Object-Oriented Programming (Abstraction, Encapsulation, Comparing Primitive Types to Class Types, Constructors, Static, Access Modifiers)

JJ2-6.
Chapter 2: Introducing Objects.
Chapter 3: Primitive Types, Wrappers, and Boxing
Chapter 5: OOP Part II -- Constructors and Visibility

Chapter 3: Explanation of "a Sample Program" (the Class "Object")

JJ2-6. Chapter 3: Primitive Types, Wrappers, and Boxing. Page 32, Digital Clock Program

Chapter 6: More OOP - Extending Classses (Inheritance, Polymorphism)

JJ2-6.
Chapter 8: More OOP -- Extending Classes.

Chapter 7: Java Statements (Exceptions)

JJ2-6. Chapter 10: Exceptions.


 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Marilyn and Margaret -- thank you!

I'll update the pages with this today.
 
Ed Connery
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
*** Very Large BUMP ***

I'm getting ready for OOP-1 and was busily reading, and very gradually it penetrated my brain that what I was reading had little to do with the topics mentioned. A quick search found this thread and the answer to my problem, a revised list of chapter references for "JavaRanch Cattle Drive - Classes and Objects." Much as I hate to trouble nitpickers...
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let me see what I can find.
 
John Godfrey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just had a very similar experience to Ed - preparing to tackle OOP-1, I was quite a way through Chapter 3 of Just Java 2 6th edition before I realised simultaneously that:

a) I'd already read it as instructed on the initial "Preparation" page

b) It probably wasn't what I should be reading

I found this thread, so I've got a good idea what I should be reading, but could I suggest updating http://www.javaranch.com/drive/3/index.jsp to maybe include the chapter numbers for the 6th edition?
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Just Java 2 book disappeared in a move :|

How about this: if you tell me the page numbers, I'll update the instructions?
 
John Godfrey
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not the page numbers so much as the chapter numbers - it seems that the chapter numbers suggested before starting the Cattle Drive (1, 3, then 4, 7 and the first half of 9) correspond to the 6th edition, but the chapter numbers to be read before OOP don't (it currently says 2, 3, 6 and the last half of 7). I'm still reading through the alternatives suggested by Margaret earlier in the thread, but they seem to make sense. Maybe someone more familiar with the OOP section could confirm?

FWIW, every reference to a page number I've come across so far has had an accurate 6th edition version as well, so no worries there. :-)
 
Katrina Owen
Sheriff
Posts: 1367
18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaah, I see. I thought I had made those adjustments.

I've made the changes here:

http://www.javaranch.com/drive/3/index.jsp

... I mean it, this time!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic