java2 實用教程 第三版 第三章 習題 1
public class part1
{
public static void main(String args[])
{
char x='你',y='e',z='吃';
if(x>'A')
{
y='愛';
z='情';
}
else
y='我';
z='她';
System.out.println(""+x+y+z);
}
}
輸出結果:
你愛她
java2 實用教程 第三版 第三章 習題 1
public class part1
{
public static void main(String args[])
{
char x='你',y='e',z='吃';
if(x>'A')
{
y='愛';
z='情';
}
else
y='我';
z='她';
System.out.println(""+x+y+z);
}
}
輸出結果:
你愛她