=========================================
class Shuffle1
{
public static void main(String[] args)
{
int x = 0 ;
int y = 0;
while (x < 5 )
{
y = y + x;
System.out.print(x + "" + y + "");
x= x + 1;
}
}
}
==========================================
System.out.print(x + "" + y + ""); 和System.out.print(x +y );
两个输出结果不一样,“”留空的意义是什么?
刚入坑 不太懂。 谢谢。
class Shuffle1
{
public static void main(String[] args)
{
int x = 0 ;
int y = 0;
while (x < 5 )
{
y = y + x;
System.out.print(x + "" + y + "");
x= x + 1;
}
}
}
==========================================
System.out.print(x + "" + y + ""); 和System.out.print(x +y );
两个输出结果不一样,“”留空的意义是什么?
刚入坑 不太懂。 谢谢。