Win a copy of Spring Boot in Practice this week in the Spring forum!

Petrus Pelser

Ranch Hand
+ Follow
since Feb 20, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Petrus Pelser

You can also try Apache Ivy. You can use it with Ant or stand-alone.
13 years ago

vellan vaz wrote:
Can any one give me the code to search a string in a log file.



No.

But we will help if you show some initiative.
13 years ago
You can use either SAX or DOM.
14 years ago
An instanceof check may fix the problem.

The compiler complains because, in your example, it is possible for 'this' to be either a subclass (down-casting) of 'T' or any other unrelated class which also extends AbstractBuilder.
14 years ago
It is usually used in event listeners and asynchronous method calls. You basically have an object register with another object to tell it to do something and let the first object know when it is done by calling a method on the first object (usually implemented from an interface).
14 years ago
"The Human Compiler" - This is a very good skill to have which can save you endless amounts of time in the future. The best way to develop this skill is to close your IDE and start writing code in a text-editor. At least when you are starting off or learning a new language.
14 years ago
Check out the Scanner class in the Java API.
14 years ago
If you are looking into going into Java EE development, then your are probably going to have to learn all three. Also have a look at hibernate.
14 years ago
If you need the index, just use the old for loop.
14 years ago
JExcelApi

You could also create CSV files which are readable in Excel. But I would rather stay away from Excel (read: EVIL) and go for OpenOffice.
If you find yourself implementing just one method in an interface that specifies several then you should think of creating an adapter for the interface. A lot of empty implemented methods makes your code ugly and difficult to read.
14 years ago
That all depends on what you want to do.

Enterprise applications -> Java
Web development -> PHP, Ruby on Rails
Desktop applications -> All depends on the platform.

If you are looking to start out, I would recommend you look at a career website and see which skills are required.
14 years ago
Have a look at the Scanner class.
14 years ago
Hi all

Anybody know if it is possible two run two different instances of IntelliJ IDEA. At the moment I am running two different projects in two different windows, but when one's compiling, the second one becomes unusable through a modal popup or incredibly slow when compiling in the background.

I would like to be able to run two different instances without one affecting the other. Or maybe I should use two different IDE's?
Have you checked if maybe the class contains a static method for retrieving an instance? Something like getInstance(), or getInboundMessage(), etc.
14 years ago