Java data collection application