码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
静态、非静态
public class oopDemoStufent2 { //static是一个静态方法 public static void say1(){ System.out.println("学生说好"); }} public class oopDemoStudent { //没有static就是非静态 ...
分类:其他好文   时间:2021-04-30 12:15:30    阅读次数:0
<<Rust程序设计语言>>个人版(3.3: 函数/3.4: 注释/3.5: 控制流)
常见程序设计概念 函数 函数在rust中无处不在, 对于rust程序来讲, main函数是许多程序的入口, 之前我们知道, 建立一个函数的关键字是 fn rust使用下划线命名法来命名, 这个之前也有提到过 我们来看下面的程序 fn main() { println!("Hello, world!" ...
分类:编程语言   时间:2021-04-30 12:12:35    阅读次数:0
打印个人信息
package com.itheima.demo02; public class GeRenXinXi { public static void main(String[] args) { String name ="张三"; System.out.println(name); int age = ...
分类:其他好文   时间:2021-04-30 11:58:53    阅读次数:0
jvm源码解读--12 invokspecial指令的解读
先看代码 package com.zyt.jvmbook; public class Girl extends Person{ public Girl() { int a; } @Override public void sayHello() { System.out.println("girl s ...
分类:其他好文   时间:2021-04-28 11:53:27    阅读次数:0
命令行传参
命令行传参 package test4; public class CommandLineParam { public static void main(String[] args) { for (int i=0; i<args.length; i++){ System.out.println("a ...
分类:其他好文   时间:2021-04-26 13:20:29    阅读次数:0
设计模式之适配器模式
适配器模式 适配器模式结构图: 示例代码: // 已有登录类实现 public class PassportService { public String regist(String userName, String password){ System.out.println("注册成功====== ...
分类:其他好文   时间:2021-04-26 13:19:58    阅读次数:0
java中什么是线程不安全给出一个例子
下面我们再给出一个线程不安全的例子。 例:1.8.2 class BookMark_to_win { int bookNum=10; void onlySellOne() { if (bookNum > 0) { System.out.println(Thread.currentThread().g ...
分类:编程语言   时间:2021-04-23 12:23:20    阅读次数:0
11、java方法
何谓方法? System.out.println(),那么它是什么呢? System是一个类,out是一个对象,println()就是一个方法,这句话的理解就是,调用System类里的一个out对象中的方法叫做println Java方法是语句的集合,它们在一起执行一个功能。(如果需要用到大量的a+ ...
分类:编程语言   时间:2021-04-22 15:16:19    阅读次数:0
Java实现堆排序
堆排序 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
算法很美(蓝桥) | 位运算的奇技淫巧
前言 在学习算法很美课程的时候,学习到了一些位运算的奇技淫巧,收录在此 判断奇偶数 判断奇数1 & x == 1 System.out.println((1991 & 1) == 1); 判断偶数1 & x == 0 System.out.println((1990 & 1) == 0); 获取二进 ...
分类:编程语言   时间:2021-04-20 15:43:24    阅读次数:0
5792条   上一页 1 ... 3 4 5 6 7 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!