Retreiving info from an array in a java file using javascript?

I think the better question would be, suppose you click on cars.com, once you do, the webpage will display the contents of an array from a .java file. How do I do this?

Thanks.