This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Input comparator

 
B M Tejaswi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem here is am supposed to use only JDK API's and no third party libraries!!
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic