Hey peeps,

I am new to

java and I wanted to know how to make a little function that has a double value and returns a int value in form of a

string.

For example,

So after running the function it returns the value: 12,346

Hence this does two things, places a comma afer the three digits and rounds the document in a whole number so 12345.56 becomes 12346

Can anyone help me how to do this.

Thanks,

Zub