码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
16、方法的重载
方法的重载 public class MethodDemo05 { public static void main(String[] args) { int add1 = add(1, 2); System.out.println(add1); System.out.println(" "); in ...
分类:其他好文   时间:2021-06-28 18:55:14    阅读次数:0
17、可变参数
可变参数 实际上参数是数组 public class MethodDemo07 { public static void main(String[] args) { MethodDemo07 demo07 = new MethodDemo07(); demo07.test(1,2,3,4,5,6,7 ...
分类:其他好文   时间:2021-06-28 18:53:22    阅读次数:0
18、递归
递归 public class MethodDemo09 { //2! 2*1 //3! 3*2*1 //5! 5*4*3*2*1 public static void main(String[] args) { MethodDemo09 demo09 = new MethodDemo09(); i ...
分类:其他好文   时间:2021-06-28 18:52:21    阅读次数:0
19、案例
案例 public class MethodDemo11 { public static void main(String[] args) { judge(); } //加法 public static double add(double x,double y) { return x + y; } ...
分类:其他好文   时间:2021-06-28 18:50:17    阅读次数:0
Java - Hello World
新建文件后缀名为.java 编写代码 public class Hello{ public static void main(String[] args) { System.out.print("Hello,world!"); } } 通过javac编译 java文件,生成一个同名class文件 运 ...
分类:编程语言   时间:2021-06-28 18:02:14    阅读次数:0
Zookeeper客户端zkClient和curator的操作
zkClient操作 基本增删改查代码如下 public class createSession { public static void main(String[] args) { ZkClient zkClient = new ZkClient("119.45.52.68:2181"); Sys ...
分类:其他好文   时间:2021-06-28 18:01:05    阅读次数:0
ubuntu java启动shell脚本
public void startC138() { new Thread(() -> { try { Thread.sleep(10000); String killredis = "/home/bjlthy/gym/code/killredis.sh"; Process ps = Runtime. ...
分类:编程语言   时间:2021-06-28 17:45:28    阅读次数:0
Android web View 监听上传图片事件
伪代码贴上 @Override protected void onCreate(Bundle savedInstanceState) { mWebView = (WebView) findViewById(R.id.webview); //获得webView initWebView(); } pri ...
分类:移动开发   时间:2021-06-25 17:11:53    阅读次数:0
三种简单的排序
//冒泡排序,思想就是每个数据与下一个数据一个个对比下去 public static void sort(int[] nums){ if(nums==null||nums.length==0){ return; } for(int i =0;i<nums.length;i++){ for(int j ...
分类:编程语言   时间:2021-06-25 16:58:16    阅读次数:0
字符串的各种方法
练习一:随机输入你心中想到的一个名字,然后输出它的字符串长度 Length:可以得字符串长度 using System; namespace 字符串的各种方法 { class Program { static void Main(string[] args) { //练习一:随机输入你心中想到的一个 ...
分类:其他好文   时间:2021-06-25 16:48:53    阅读次数:0
62627条   上一页 1 ... 6 7 8 9 10 ... 6263 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!