how to access data from java