码迷,mamicode.com
首页 >  
搜索关键字:static    ( 45277个结果
通俗易懂的a++和++a的解释
public class Test { public static void main(String[] args) { int a = 3; int b = a++; //a先给b赋值,所以b是3,然后再自增1,所以再输出a为4 System.out.println(a); //输出结果 4 in ...
分类:其他好文   时间:2021-04-15 12:49:34    阅读次数:0
for语句增强
package ShunXuDome;public class forDOme05 { public static void main(String[] args) { int[]numbers={10,20,30,40,50};//定义了一个数组 for (int i = 0; i < 5; i+ ...
分类:其他好文   时间:2021-04-15 12:23:41    阅读次数:0
事件监听
事件监听 当某个事件发生,会产生什么? public class Demo01 { public static void main(String[] args) { //按下按钮,触发事件 Frame frame = new Frame(); Button button = new Button() ...
分类:其他好文   时间:2021-04-14 12:40:04    阅读次数:0
java基础[04]
增强for循环 public class ForDemo{ public static void main(String[] args){ int[] numbers = {10,20,30,40,50}; //遍历数组元素 for(int x:numbers){ System.out.printl ...
分类:编程语言   时间:2021-04-14 12:36:49    阅读次数:0
CSS图片旋转-实现加载中动画效果
一、代码展示 <template> ... <div class="loading-animation-box" > <img class="loading-animation" width="26" height="28" src="../../../static/images/balabla.p ...
分类:Web程序   时间:2021-04-14 12:20:55    阅读次数:0
流程控制学习--打印三角形及Debug
package com.kuang.struct; public class TestDemo { public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j = 5; j ...
分类:其他好文   时间:2021-04-14 12:09:53    阅读次数:0
Java-方法
// 1.Java方法 public static void main (String args[]){ int res = sum(1, 2); // int res = HelloWorld.sum(1, 2); System.out.println(res); } // 求和 public s ...
分类:编程语言   时间:2021-04-14 12:05:41    阅读次数:0
算数运算符 自增 自减
package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; ...
分类:其他好文   时间:2021-04-13 12:33:54    阅读次数:0
算术运算符 模运算
package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; ...
分类:其他好文   时间:2021-04-13 12:33:43    阅读次数:0
图片与base64转换
` /** * @Description: base64字符串转化成图片 * @Param: * @return: * @throws Exception * @author: hw * @date: 2021/4/12 15:45 */ public static boolean Generate ...
分类:其他好文   时间:2021-04-13 12:22:14    阅读次数:0
45277条   上一页 1 ... 37 38 39 40 41 ... 4528 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!