Joseph Mokenela

Ranch Hand
+ Follow
since Jan 18, 2011
Joseph likes ...
Hibernate Eclipse IDE Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
27
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Joseph Mokenela

I have this program which is supposed to be stuck in an infinite loop at line 12. But it doesn't, instead it prints 5. It only behaves correctly (i.e runs infinitely) when I run it in debug mode.
It never gets in the first loop starting at line 6, which is the intention.  Am I missing something?

6 months ago
You can checkout the following Tutorial from Duke University.
6 months ago
Welcome the Ranch.  

Try using the Hibernate session which is not that memory intensive.
6 months ago
When you have the tests that affect the structure of the database. You must always roll back after executing the test. As a rule of thumb, your test must test the existing structure, not alter it.
Welcome to the Ranch.  

You can have a look at the Java Tutorials - RMI to review about the Java RMI.
6 months ago
I would say, do it. Even if its not for credits, do it regardless. The lessons learned from that experience will be invaluable. It will also teach you how to work in a team...which is exactly what you will be doing in real world projects.
6 months ago
Put what you have leaned so far into practice. Write more java code. pick a small project to work on.
6 months ago
I would suggest that you use normal notepad and use the command line. Don't use the IDE until you are able to figure how to compile the program on the command line.
It will help clear a lot of things by the time you switch to the IDE.
6 months ago
Welcome to the Ranch.

refers to the instance of the current object.

when you have the setter method as below

You are seting the value that is passed as the paramete to the instance variable b

The getter method below is simply returning the value of the instance variable.

6 months ago
You can use the Rest Template if you are familiar with Spring.

This article gives a brief overview of the rest template.
6 months ago
I agree with Peter, make use of the documentation as it is comprehensive and more frequently updated.
6 months ago

Campbell Ritchie wrote:What confuses people is that mutable reference types can change their state inside a method and they don't know that isn't pass by reference.



I think the confusion is caused by some text books which actually teach that java is pass by reference on Object types and pass by value on primitive types.
6 months ago

Campbell Ritchie wrote:Apology accepted. That just goes to show you how careful you need to be; I think getting into the habit of using a standard form for control structures will help.



Much appreciated! I will be more careful next time... And thank you for spoting that mistake.  
6 months ago