码迷,mamicode.com
首页 >  
搜索关键字:__main__    ( 65088个结果
if,switch选择结构,while,do......while循环结构
顺序语句 案例 package com.bk201.struct; public class ShunXuDemo { public static void main(String[] args) { System.out.println("H"); System.out.println("e"); ...
分类:其他好文   时间:2021-03-10 13:13:09    阅读次数:0
Spring学习(一)
Spring开发步骤 ①导入坐标(maven) ②创建Bean ③创建applicationContext.xml ④在配置文件中进行配置 ⑤通过Spring容器来访问容器中的Bean,ApplicationContext是Spring容器最常用的接口,该接口有如下两个实现类: ClassPathX ...
分类:编程语言   时间:2021-03-10 13:12:25    阅读次数:0
xxx.java:1: 错误: 类xxx是公共的, 应在名为 xxx.java 的文件中声明 public class xxx
在学习过程中敲如下的一段代码: public class example4{ public static void main(String[] args){ int n=9; while(n>6){ System.out.println("n = "+n); n--; } } } 文件名为 exam ...
分类:编程语言   时间:2021-03-09 13:56:20    阅读次数:0
Java基础04
数组声明创建 声明数组变量,两种方法 int[] num; int num[]; 使用 new 创建数组 num = new int[arraySize]; 可以同时进行声明和创建数组 int[] num = new int[arraySize]; 数组初始化 静态初始化 int[] a = {1, ...
分类:编程语言   时间:2021-03-09 13:55:36    阅读次数:0
idea中将单个java类导出为jar包文件的方法
方法如下: 1. 写好功能工具类,如: public class Hello { public static void main(String[] args) throws Exception { Hello hello = new Hello(); hello.sayHello("word. bi ...
分类:编程语言   时间:2021-03-09 13:53:56    阅读次数:0
类初始化和实例初始化
代码例子如下 public class Father{ private int i = test(); private static int j = method(); static{ System.out.print("(1)"); } Father(){ System.out.print("(2 ...
分类:其他好文   时间:2021-03-09 13:44:24    阅读次数:0
Go语言系列-07-函数
函数 函数的基本概念 package main import ( "fmt" ) // 函数 // 函数存在的意义:函数能够让代码结构更加清晰,更简洁,能够让代码复用 // 函数是一段代码的封装 // 把一段逻辑抽象出来封装到一个函数中,给他起个名字,每次用它的时候直接用函数名调用即可 // 函数的 ...
分类:编程语言   时间:2021-03-09 13:18:49    阅读次数:0
Java的数组
Java的数组 public class Demo18 { public static void main(String[] args) { int[] nums;//1.声明一个数组 nums = new int[5];//2.创建一个为5的数组 //通常可以合为一步 int[] nums = n ...
分类:编程语言   时间:2021-03-09 13:14:21    阅读次数:0
Nginx main()源码分析
1 int ngx_cdecl 2 main(int argc, char *const *argv) 3 { 4 ngx_buf_t *b; 5 ngx_log_t *log; 6 ngx_uint_t i; 7 ngx_cycle_t *cycle, init_cycle; 8 ngx_conf ...
分类:其他好文   时间:2021-03-09 13:10:05    阅读次数:0
java中多线程执行时,为何调用的是start()方法而不是run()方法
线程的状态 1. 初始(NEW):新创建了一个线程对象,但还没有调用start()方法。2. 运行(RUNNABLE):Java线程中将就绪(ready)和运行中(running)两种状态笼统的称为“运行”。线程对象创建后,其他线程(比如main线程)调用了该对象的start()方法。该状态的线程位 ...
分类:编程语言   时间:2021-03-09 13:04:51    阅读次数:0
65088条   上一页 1 ... 73 74 75 76 77 ... 6509 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!