hi i have to group the data.
i completed coding.
the output is
[ output]
C:\Program Files\Java\jdk1.6.0_03\bin>java check
Please Enter the Number of Clusters
3
Enter the file to be read with csv extension
hi.csv
[(345,2) belongs to 0, (300,2) belongs to 0, (390,2) belongs to 0, (400,3) belongs to 0, (457,3) belongs to 2, (478,3) belongs to 2, (200,1) belongs to 1
, (234,1) belongs to 1, (280,1) belongs to 1]
[/output]
every thing works fine
but i have to print the data in excel sheet of form
group 0 group1 group2
(345,2) (234,1) (400,3)
(300,2) (200,1) (457,3)
how to do this in java.
can you help me with a method to do this.
thank you