码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
go defer bug
package mainimport ( "fmt" "os")func F() (int, string) { return 1, "o"}func ff(a int, s string) { fmt.Println(a) fmt.Println(s)}func f(p []byte) { p[1 ...
分类:其他好文   时间:2021-01-15 12:00:51    阅读次数:0
Java学习
1. 数组的赋值 1. 静态 int []a = {2,3,5}; 2. 默认初始化 int[] b=new int [3]; 3. 动态初始化 a[1]=2 a[2]=5 2. 数组的遍历 1. foreach 用于读取不能修改 for(int m:a){ System.Out.println ( ...
分类:编程语言   时间:2021-01-14 11:05:36    阅读次数:0
java基础终稿
重写 public class B { public static void test(){ System.out.println("B=>test()"); } } public class A extends B { public static void test(){ System.out.p ...
分类:编程语言   时间:2021-01-14 10:38:57    阅读次数:0
Integer用==进行值比较,什么时候相等,什么时候不等?
package mytest; public class TestInteger { public static void main(String args[]) { Integer a =127; Integer b =127; System.out.println(a==b); a=128; b ...
分类:其他好文   时间:2021-01-13 11:22:55    阅读次数:0
猜拳游戏
类图 源代码 User类 import java.util.Scanner; public class User extends Player{ public String sayName(){ System.out.println("请输入您的名字:"); Scanner input = new ...
分类:其他好文   时间:2021-01-13 11:06:51    阅读次数:0
java基础复习三
方法 //main方法 public static void main(String[] args) { int sum=max(1,2); int sum2=add(1,2); System.out.println(sum); System.out.println(sum2); } //加法 pu ...
分类:编程语言   时间:2021-01-11 10:44:24    阅读次数:0
动手动脑
public class EnumTest { public static void main(String[] args) { Size s=Size.SMALL; Size t=Size.LARGE; //s和t引用同一个对象? System.out.println(s==t); // //是原 ...
分类:其他好文   时间:2021-01-02 10:48:34    阅读次数:0
this关键字详解
this关键字代指当前对象,可在方法中区分全局变量和局部变量 public class ThisTest { private int age; public ThisTest(){ System.out.println("我是空参"); } public ThisTest(int age){ thi ...
分类:其他好文   时间:2021-01-01 12:56:30    阅读次数:0
浅谈i++与++i
问题一:请问以下代码输出什么? int a = 0; for (int i = 0; i < 99; i++) { a = a++; } System.out.println(a); 答案是:0 问题二:请问以下代码输出什么? int b = 0; for (int i = 0; i < 99; i ...
分类:其他好文   时间:2021-01-01 12:17:57    阅读次数:0
1、java初体验
class HelloChina{ public static viod main(String[] args){ System.out.println("hello,world"); } } ...
分类:编程语言   时间:2021-01-01 12:02:08    阅读次数:0
5792条   上一页 1 ... 11 12 13 14 15 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!