Java to Excel
I need to direct the output of my java program to an excel/notepad file.
I have the current o/p as follows..
No of visits to location ( 1,1) >> [0, 2, 4, 28, 2]
No of visits to location ( 1,2) >> [0, 4, 8, 9]
No of visits to location ( 1,3) >> [0, 82, 2]
No of visits to location ( 1,4) >> [0, 7, 10]
No of visits to location ( 1,5) >> [0, 17]
and this goes on till location (10,10)
I want to save them in such a way that each value in particular location should be saved in each row. ...like:
( 1,1) ( 1,2) ....so on till (10,10)
0 0
2 4
4 8
28 9
2
can you help me get this done in java.
thanks.
|