Java Program: Compare two text files

java_logoToday while managing the comments, I got a request of this sort.

HI,

I have a small question in java.
I have two inputs , which are in two documents .I want to compare these two document values. Is it possible in Java.  please let me know.

thanks & Regards,

Certainly, there are ways to compare two text files in Java but the return value can be of many types.

Full article (413 words) »

How to Compile Java Source within Java Program

This small trick will tell you how you can compile a java source file from another java file on the go. You do not need to run it on a different page and compile it there and then get back to this program. This will be immensely helpful for a program that has some dynamic segments of codes which need to be compiled here within. Basically what we are gonna do is  we will use getSystemJavaCompiler() method in the ToolProvider class  that returns an object of some class that implements JavaCompiler.  Full article (198 words) »

Protected by Comment Guard Pro