Java app for extracting data