Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Input comparator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Input comparator" Watch "Input comparator" New topic
Author

Input comparator

B M Tejaswi
Greenhorn

Joined: Jul 02, 2012
Posts: 11
I have a requirement like given two mysql dump i have to write the difference between the old and new schemas. Both new and old schema are separated by a delimiter and provided as input through standard input and not through file. How do i approach this? Any suggestions ?
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Tejaswi Bm wrote:I have a requirement like given two mysql dump i have to write the difference between the old and new schemas.


Google for diff algorithm. Then google again to see if you can find a thirdparty Java library that implements it. I would assume there's at least one at sourceforge or apache.
B M Tejaswi
Greenhorn

Joined: Jul 02, 2012
Posts: 11
The problem here is am supposed to use only JDK API's and no third party libraries!!
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

Tejaswi Bm wrote:The problem here is am supposed to use only JDK API's and no third party libraries!!


Then just google for the algorithm and implement it yourself. Skip the part about looking for a thirdparty library.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Input comparator
 
Similar Threads
Does the jQuery val() function not work in IE7 & IE8
Read book for EJB1.1 or EJB2.0?
Can one JSP be matched to different Action classes ?
jsf Paging Problem
What's Wrong with my FireFox