直接贴源代码: package com.java.fmd; import java.util.Arrays; import java.util.Scanner; public class QuickSort { public static int b=1; public static void sw ...
分类:
编程语言 时间:
2021-06-30 18:18:09
阅读次数:
0
1 Array.every(x=>x)是每一个都要满足 2 3 Array.some(x=>x)是有一个满足。 4 5 Array.find(findIndex),返回符合条件的第一个值。 6 7 Array.filter(过滤成新的数组) 8 9 数组的方法分为两类 10 11 1)改变原数组 1 ...
分类:
编程语言 时间:
2021-06-30 18:16:34
阅读次数:
0
打印三角形 public class TriangleDemo { public static void main(String[] args) { for (int j = 1; j <= 5; j++) { for (int i = 5; i >= j; i--) { System.out.pr ...
分类:
编程语言 时间:
2021-06-30 18:13:09
阅读次数:
0
一.Object类 1.toString 一般子类都有覆盖。默认返回:对象的 class 名称 + @ + hashCode 的十六进制字符串。 public String toString() { return getClass().getName() + "@" + Integer.toHexS ...
分类:
其他好文 时间:
2021-06-30 18:09:41
阅读次数:
0
20. 有效的括号](https://leetcode-cn.com/problems/valid-parentheses/) class Solution { public boolean isValid(String s) { Map<Character, Character> map = ne ...
分类:
其他好文 时间:
2021-06-30 18:02:33
阅读次数:
0
简单工厂模式 Shape.java public interface Shape { void draw(); } Circle.java public class Circle implements Shape{ @Override public void draw() { System.out. ...
分类:
编程语言 时间:
2021-06-30 18:01:11
阅读次数:
0
布尔逻辑运算符:返回一个boolean结果 有:! 非、& 与、| 或、^异或 、&&短路与、 || 短路或 短路与:左边为false,右边就不执行 短路或:左边为true,右边就不执行 public static void main(String[] args) { int i = 10; int ...
分类:
编程语言 时间:
2021-06-30 17:59:18
阅读次数:
0
总述:任何集合内部都可以存储其它任何集合 1、List嵌套List public class Test{ public static void main(String[] args){ /* 假如有两个班的学生姓名,它们分别存储在两个集合中: */ //第一个班 ArrayList<String> ...
分类:
其他好文 时间:
2021-06-30 17:53:01
阅读次数:
0
获取List<Map<String, Object>中Map的属性值列表, 获取所有map对象的某个属性列表 ©Copyright 蕃薯耀 2021-06-29 https://www.cnblogs.com/fanshuyao/ /** * 获取List列表中的Map对象属性的值 * @param ...
分类:
其他好文 时间:
2021-06-30 17:38:54
阅读次数:
0
乱码问题 测试步骤: 1、我们可以在首页编写一个提交的表单 <form action="/e/t" method="post"> <input type="text" name="name"> <input type="submit"> </form> ? 2、后台编写对应的处理类 @Control ...
分类:
其他好文 时间:
2021-06-30 17:32:30
阅读次数:
0