import java.util.Scanner;
public class A01 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
int No1=0,No2=0,No3=0;
System.out.println("输出前手中的纸牌:");
System.out.print("左手中的纸牌:");
No1=input.nextInt();
System.out.print("右手中的纸牌:");
No2=input.nextInt();
No3=No1;
No1=No2;
No2=No3;
System.out.println("\n\n输出后手中的纸牌:");
System.out.println("左手中的纸牌:"+No1);
System.out.println("右手中的纸牌:"+No2);
}
}
转载于:https://blog.51cto.com/765133133/1420139