编写一个简单程序,要求数组长度为5,静态赋值10,20,30,40,50,在控制台输出该数组的值。 1 package G; 2 3 public class G1 { 4 5 public static void main(String[] args) { 6 // TODO Auto-gener ...
分类:
编程语言 时间:
2021-04-21 13:00:48
阅读次数:
0
Main: public class Main { public static void main(String[] args) { Prizes<String> prizes = new Prizes<>(); prizes.addPrizes("一等奖: 荣耀40S手机 一部"); prizes ...
分类:
编程语言 时间:
2021-04-21 12:33:09
阅读次数:
0
##一、 //挂载路由导航守卫,控制页面访问权限 //to 将要访问的路径 //from 代表从哪个路径跳转而来 //next 是一个函数,表示放行 // next() 放行 next('/login') 强制跳转 router.beforeEach((to, from, next) => { if ...
分类:
其他好文 时间:
2021-04-21 12:30:59
阅读次数:
0
堆排序 public class HeapSort { public static void main(String[] args) { int[] arr = {1, 3, 519, 2, 10, 8, 0, 998}; heapSort(arr); System.out.println(Arra ...
分类:
编程语言 时间:
2021-04-21 12:26:45
阅读次数:
0
Cloud computing models: With cloud deployment, nothing is installed on premise, but an Internet connection and network infrastructure solutions With h ...
分类:
其他好文 时间:
2021-04-21 12:22:48
阅读次数:
0
都是JUC并发包下的类 CountDownLatch:倒计时,countDown每次减少,await控制达到倒计时要求值 //下自习离开案例,班长必须最后走 public class CountDownLatchDemo { public static void main(String[] args ...
分类:
其他好文 时间:
2021-04-21 12:21:06
阅读次数:
0
内容是看了设计模式之禅,然后自己写个文档总结到一起,便于查看。 单例模式:(程序运行过程中只能有一个类的对象) 单例模式主要是对构造方法进行私有化 private,防止外部通过 new方法 创建实体类。针对该类中的方法尽量使用static修饰,便于访问。 public class Singleton ...
分类:
其他好文 时间:
2021-04-21 12:14:09
阅读次数:
0
public class Main { public static void main(String[] args) throws Exception { // 两个CompletableFuture执行异步查询: CompletableFuture<String> cfQueryFromSina ...
分类:
编程语言 时间:
2021-04-21 12:05:09
阅读次数:
0
datebase_router.py # database_router.pyfrom django.conf import settingsDATABASE_MAPPING = settings.DATABASE_APPS_MAPPINGclass DatabaseAppsRouter(objec ...
分类:
数据库 时间:
2021-04-21 11:52:46
阅读次数:
0
UDP 发短信 : 不需要连接但是需要知道对方的地址 发送消息 //不需要连接服务器 public static void main(String[] args) throws Exception { //1.建立一个socket DatagramSocket datagramSocket = ne ...
分类:
其他好文 时间:
2021-04-21 11:50:41
阅读次数:
0