hi i've got this code, I want to store this in a file and the output will be

"1*2*4*5*6*8*9* 10"

can anyone plz help me to find this out...

here is the code

Code:
public String printPositive Integers()
{
for(int i=1; i<=10; i++)
{
System.out.prin t("*"+i);
}
}