码迷,mamicode.com
首页 >  
搜索关键字:println    ( 5792个结果
lamaba 表达式中不能对基本数据类型进行操作
String s = "123"; System.out.println(System.identityHashCode(s)); s = "456"; System.out.println(System.identityHashCode(s)); 打印结果 2111991224292938459 ...
分类:其他好文   时间:2020-04-30 18:58:53    阅读次数:50
第八次上机
package com.xuexiao; public class Point { int x; int y; Point() { System.out.println(x); System.out.println(y); } Point(int dx,int dy) { x+=dx; y+=dy; ...
分类:其他好文   时间:2020-04-30 13:20:21    阅读次数:41
类加载 静态加载
public class StaticTest { static int j=2; static{ j=3; System.out.println(j); } public StaticTest() { // TODO Auto-generated constructor stub j=9; Sys ...
分类:其他好文   时间:2020-04-30 11:46:25    阅读次数:48
spark dataFrame 相关知识点
相关函数: 操作DataFrame 1.data.printSchema:打印出每一列的名称和类型 2.data.show(numRows:Int):输出data 3.Data.head(n:int).foreach(println): 这个函数也需要输入一个参数标明需要采样的行数,而且这个函数返回 ...
分类:其他好文   时间:2020-04-29 15:01:03    阅读次数:60
<12>Golang基础进阶——结构体
Golang基础进阶——结构体 结构体(struct) 定义结构体 type 类型名 struct { 字段1 字段1 类型 字段2 字段2 类型 } 示例: func main() { var s1 = Student{1, "zs", 'f', 18, "sh"} fmt.Println(s1) ...
分类:其他好文   时间:2020-04-29 14:34:30    阅读次数:43
java操作redis
首先连接redis服务 //连接本地的 Redis 服务 public static Jedis getRedis(){ Jedis jedis = new Jedis("localhost"); System.out.println("连接redis的反馈信息:"+jedis.ping()); r ...
分类:编程语言   时间:2020-04-29 10:41:50    阅读次数:112
实现多线程的第二种方式——实现Runnable接口
public class MyRunnable implements Runnable { @Override public void run() { for (int i=0;i<100;i++){ System.out.println(Thread.currentThread().getName ...
分类:编程语言   时间:2020-04-28 15:13:12    阅读次数:67
java编译运行
1.编写源文件 HelloWorld.java class HelloWorld{ public static void main(String[] args){ System.out.println("hello world"); } } 2.编译源文件 javac HelloWorld.java ...
分类:编程语言   时间:2020-04-28 13:22:29    阅读次数:71
java输出当前目录(获取当前路径)
System.out.println(System.getProperty("user.dir")); //windows 目录写法: String jsonData = new String(Files.readAllBytes(Paths.get("d:\\work\\test.json"))) ...
分类:编程语言   时间:2020-04-28 09:37:52    阅读次数:76
Scanner
public class Demo1 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("请输入内容:"); //判断用户有没有输入字符串 i ...
分类:其他好文   时间:2020-04-27 13:46:28    阅读次数:52
5792条   上一页 1 ... 42 43 44 45 46 ... 580 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!