增强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
一、代码展示 <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
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
// 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
` /** * @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
HelloWorld 随便创建个文件夹存放代码 新建立一个Java文件 创建txt文件改后缀为。java 文件名"Hello" 注意系统可能没有显示文件名需要手动打开 编写代码 public class Hello { public static void main(String[] args) { ...
分类:
编程语言 时间:
2021-04-13 12:08:16
阅读次数:
0
时间工具类 import java.time.*; import java.time.format.DateTimeFormatter; import java.util.Date; public class TimeUtil { /** * 北京时间 */ private static final ...
分类:
编程语言 时间:
2021-04-13 12:01:10
阅读次数:
0
1.使用for循环计算1-100的和,除了以3结尾的那些数 package java6; public class SJ1 { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m ...
分类:
编程语言 时间:
2021-04-13 11:53:23
阅读次数:
0