数组查找 public class ArraySearchTest { public static void main(String[] args) { int[] a = new int[]{1, 5, 6, 7, 10, 3, 9}; int value = 9; int result = search(a, 9); if (result > 0) { System.out.println("找到了,索引为
冒泡排序 思路: 比如:3,5,6,2,4,7 结果:2,3,4,5,6,7 public class BubbleSort { public static void main(String[] args) { int[] a = new int[]{3, 5, 6, 2, 4, 7}; for (int i = 0; i < a.length; i++) { System.out.print(a[i] + " "); }
查看数据库版本 -- 查看oracle版本 select * from product_component_version; 查看数据库列表 -- 查看数据库列表 select username as schema_name from sys.all_users order by username; 删除用户及对应数据 -- 删除用户以及下面的objec