zoukankan      html  css  js  c++  java
  • Android开发,java开发程序员常见基础面试题,更换两个变量的值,java逻辑代码

    public class abswitch{
    	public static void main (String args []){
    		//author:qq986945193
    		int a=1;
    		int b=2;
    		int c;
    		c=a;//c是1
    		a=b;//a是2
    		b=c;//b是1
    		System.out.println("a的值是:"+a);
    		System.out.println("b的值是:"+b);
    	}
    }

    程序员小冰博客:http://blog.csdn.net/qq_21376985 技术交流QQ986945193 微博:http://weibo.com/mcxiaobing
  • 相关阅读:
    20201107
    20201024
    20201020
    20200331
    20200330
    20200320
    20200319
    20200310
    20200221
    20190926
  • 原文地址:https://www.cnblogs.com/mcxiaobing/p/5472077.html
Copyright © 2011-2022 走看看