William Barnes

Ranch Hand
+ Follow
since Mar 16, 2001
William likes ...
IntelliJ IDE Java Spring
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by William Barnes

Nice example, but I think you have a typo.  That should be "/base/third" correct?

2 months ago
One of the best things new programmers can do, is learn how to use a debugger.  Once you know how to use a debugger, you can solved most of your own problems.  And since it would be crazy stupid to use a command line debugger, you should learn how to use an IDE - as most IDEs contain debuggers.
6 months ago

Found a more "complete" example, so going to just move on to that.  https://spring.io/guides/gs/accessing-data-jpa/

8 months ago
Starting with the "official" Quick Start example here: http://projects.spring.io/spring-data/#quick-start

I use start.spring.io to create a project with 1] DevTools, 2] JPA and 3] H2

Using IntelliJ IDEA open the project, and the test driver class executes with no errors.

tFollowing the instuctions on the Quick Start page I: update pom.xml, create Employee.java, and create EmployeeRepository.java

Now when I run this I get

I can't find any place where I have "employeeRepository", lower case "e", as it appears in that log message.

I assume that that web page isn't giving me exactly all the changes I need to make.  But I don't know how to trouble shoot this.


8 months ago
What I learned:
  • I only answered 41 of 50 questions, even knowing that wrong answers wouldn't count against me.  My bad.
  • Best practice tests found here: http://samplewonderlictest.com/
  • Have scrap paper, and calculator ready for quick notes calculations.
  • Set a timer for the half way point, to see if you are on track.
  • Pick a time, like maybe 1 minute left, at which point to just answer all remaining questions randomly.

  • 9 months ago
    Not only am I not able to edit my post, I also can't delete it.  So I will answer it.  In the instructions for the test:

    "It is in your best interest to answer as many questions as you can, as there is no penalty for guessing."

    9 months ago
    I am told to look here for examples: https://www.google.com/#q=ccat+test+for+employment
    And that there will be 50 multiple choice questions, with a time limit of 15 minutes.  This is to get me to the next step in the interview process.
    When I hit a question, which I don't know the answer for, do I: 1] skip over it, or 2] just take a guess?  Is it better to have answered less questions, with less incorrect answers?
    9 months ago
    I agree, write some junits.
    10 months ago
    Ok, not able to break your code yet.  So looking good.

    Silly question, how do I compare the nodes?  If i were to have two iterators, and I want to see if they are pointing to the same node.  How would that work?  Say I create a CircularListWithTail, using Integer for the node.  If I do a .get() I end up with Object, not Integer.   I know this is a general question, and I think I would run into the came confusion using LinkedList.

    10 months ago
    "CircularListWithTail"  I like that name, except it makes you think of the "tail" as being on the end.  Instead of the beginning. 
    10 months ago
    How would you like to be credited when I steal use this code?  Thanks.
    10 months ago
    Same information you can fine here: https://docs.oracle.com/javase/7/docs/api/java/util/ArrayList.html ?

    Not sure what/which ArrayList.java you are referring to.
    10 months ago
    Ok, so back to my original question.  Can I do this using LinkedList, or do I need to write my own linked list?  Thanks.
    10 months ago
    I take it back.  I seem to be able to create the link.  But why doesn't this loop forever?


    Output is

    ==> 100
    ==> 101
    ==> 102
    ==> 103
    ==> 104
    ==> 105
    ==> 106
    ==> 107
    ==> 108
    ==> 109
    ==> 102

    10 months ago
    Still not able to updated posts.

    And yes, I know get(2) gives me the 3rd node.

    10 months ago