|
关于自加自减: 算数符在前面是先自加自减再使用 算数符在后面是先使用再自加自减 第四题答案相互探讨: public class Four {
public static void main(String[] args) { // TODO Auto-generated method stub int a=4; int b=6; int c=8; int temp; if(a<b) { temp=b; b=a; a=temp; } if(b<c) { temp=b; b=c; c=temp; if(a<b) { temp=b; b=a; a=temp; } } System.out.println(a + " " + b + " " + c); }
}
|