Yes, you can read any file in Java, you just need to know how to read it, i.e. how is the data stored in the file. File extensions do nothing magical - they just give a hint to whatever program you are using as to how to read the data. For example, if you have MS
Word installed, then Windows associates .doc to Word and uses it to open that type of file.
As long as your program knows what format the data is in, then the extension can be anything. You could have files that store ascii text and use a .foobar extension. The point is - using Java, you can read any type of file; Your program just needs to know what format it's in to do anything useful, like displaying the data in a gui.
Since a .csv is
normally just a comma-delimited ascii text file, then you can simply use a java.io.BufferedReader or some other character-based Reader.