Joseph Mokenela

Ranch Hand
+ Follow
since Jan 18, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

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?

5 years ago
You can checkout the following Tutorial from Duke University.
5 years ago
Welcome the Ranch.  

Try using the Hibernate session which is not that memory intensive.
5 years 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.
5 years 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.
5 years ago
Put what you have leaned so far into practice. Write more java code. pick a small project to work on.
5 years 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.
5 years 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.

5 years ago
You can use the Rest Template if you are familiar with Spring.

This article gives a brief overview of the rest template.
5 years ago
I agree with Peter, make use of the documentation as it is comprehensive and more frequently updated.
5 years 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.
5 years 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.  
5 years ago