hi
well no major mystery here
i just modified your code to add a space as a String literal b/w
a.x and a.y and voila !!! ... there is the result you wanted
public class flag{
int x,y;
String name;
public static void main(String args[]){
flag a= new flag();
System.out.println(a.x + " " + a.y+a.name+a.x);
}
}
as you might have figured out .... what was happening in you code was that a.x+a.y would add up to zero ... thats all
hope that helps
Samith.P.Nambiar
---------------------------------------
the harder you try the luckier you get