• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Head First Java

 
Ranch Hand
Posts: 789
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It seems like a couple of years ago that Carey figured this out for me.   I cannot find the post on the forum even after searching a while.

I'm trying to get to see the code for chapter 12.    I used this link and instructions in the past and I could see the different chapters.  Now it looks like it is going to git.  It shows changes to the file, but not the file.  I don't know how to get to the most up to date full example.   These are the notes I took from Carey that used to work:


https://resources.oreilly.com/examples/0636920034452

under src is
main/java

I am way behind on answering other posts on this site.  

Best,

Kevin
 
Marshal
Posts: 4400
567
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kevin Abel wrote:I cannot find the post on the forum even after searching a while ...


This one?: Head First Java - Where is the code from the book?
 
kevin Abel
Ranch Hand
Posts: 789
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron,

I appreciate you finding the post.  I'm not sure how you located it.  

These were the keys for getting to the code:

https://resources.oreilly.com/examples/0636920034452      is the location.  

Carey wrote:Under the "src" folder is "main/java" and under that is a folder for every chapter. You just have to dig a little. You don't need to sign up.



When I look at the chapter information it shows changes to the code, but not the code in the book.   I'm not sure if I'm looking at git.

I found my communication with O'Reilly and they wrote in the email that they tried the link in the book and it worked for them.   They included the link.  I can only see the blue text that is saying that it is a hyperlink.  I can't figure out how to see the underlying URL.   What is funny is that they said they tried the link on their end and it worked.  I never knew what was wrong with the url until yesterday.     I took a magnifying glass and looked at the URL in the book. It is https://areil.ly/hf.Java_3e_examples.  My eyes are fine and I can't see the period between the hf and Java.    The person writing to me even sent the incorrect URL back to me saying they tried it and it worked.  

Now my trouble is that I only see the changes but not the full code.  Sorry I said that already.   I should be sleeping now.  It's 3:00 am EST.

Best,

Kevin
 
Marshal
Posts: 78698
374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

kevin Abel wrote:Ron, . . . I'm not sure how you located it.

Our search facility can find all sorts of things.

. . . . https://areil.ly/hf.Java_3e_examples. . . .

That link won't open. I think you wanted https://oreil.ly/hfJava_3e_examples
 
Ron McLeod
Marshal
Posts: 4400
567
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
https://oreil.ly/hfJava_3e_examples and https://resources.oreilly.com/examples/0636920034452 will both take you to the same repository.

kevin Abel wrote:When I look at the chapter information it shows changes to the code, but not the code in the book.


It seems like you are clicking on the wrong link in the repository view.  Try clicking in the link in the Name column rather than the Last Commit column.

For example - at: https://resources.oreilly.com/examples/0636920034452/-/tree/main/src/main/java


Clicking on ch12 will take you to:


And then clicking on LimitWithStream.java will take you to:

 
kevin Abel
Ranch Hand
Posts: 789
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ron,

Yes.  This worked.  I was clicking in the wrong place.

I found the code here.

Maybe the authors should say how to use the repository.   Many may know, but this has been causing me a lot of trouble.

https://resources.oreilly.com/examples/0636920034452/-/blob/main/src/main/java/ch12/JukeboxStreams.java

I'll see if I can forward your answer in my emails that I have going with O'Reily Publishing.

Best,

Kevin

 
We're all out of roofs. But we still have tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic