This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!

Joseph Mokenela

Ranch Hand
+ Follow
since Jan 18, 2011
Joseph likes ...
Eclipse IDE Hibernate Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
16
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

And welcome to the Ranch!  
7 months ago
Rather explain in words what is your expected outcome and what the program is printing instead of using images.
8 months ago
And welcome to the Ranch.  
8 months ago
Welcome to the Ranch

As Swastik has stated. You need to provide the input from the comment line arguments. Are  you running the program from the command line or from the IDE?
8 months ago
Welcome to the Ranch  

It could be your method is also taking long to run. Check how long does the method that returns caseRef takes to run. The good practice will be to use the mocks against the actual call if the method is making calls to the database or external services perhaps.
8 months ago
Welcome to the Ranch

You need to initialize method with a value first before you can use it in your code.. For example

8 months ago
Welcome to the Ranch.

What will be your criteria for adding or removing. Are you going to remove the duplicates...etc?

You can read data from the file and put in the arraylist, based on your criteria, you can remove what you need and write back the update to the file.
9 months ago
First you might want to define a Move class or something along that name to encapsulate the moves allowed in  the game.  Define some battlefield class, perhaps make it multidimensional array. the location will be the coordinates where each player is at a given point. Then you can define a method to randomly select the location based on the rules you define.
9 months ago
Welcome to the Ranch.  

And also some code will help to show us where you are stuck. Its easier to help that way.
9 months ago
Welcome to the Ranch

As Campbell has already mentioned. Showing what you have done so far and letting us know where you are stuck will make things much easier to assist.
9 months ago
Congratulations on your new book and welcome to the CodeRanch!
9 months ago
Have a look at the following thread
11 months ago
The heap can be seen as the global memory pool. The heap is accessible to all methods in the program as the program runs. Unlike the variables/ primitives which live in the stack, which will go out of scope as soon as the method that declares them exits or returns. The garbage collector reclaims the memory on any objects that are eligible for garbage collection...i.e Objects which can longer be accessed. For example, if you create an object and  later assign that object reference to null. The object still lives in the heap but the link to get to it is dead. Therefore that object can be garbage collected.

11 months ago
I assume you made a typo at line 39. The correct code should be

Do you actually want plain text or your intent is to generate pdf?

Joseph Mokenela wrote:By Default, Only one instance will be created by the application context. If you want multiple per request, you can annotate the bean with



Edit: I was meaning to say a new instance per request...instead of multiple.
1 year ago